Home
last modified time | relevance | path

Searched refs:zCol (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/lib/libsqlite/src/
H A Dauth.c114 const char *zCol; /* Name of the column of the table */ in sqliteAuthRead() local
138 zCol = pTab->aCol[pExpr->iColumn].zName; in sqliteAuthRead()
141 zCol = pTab->aCol[pTab->iPKey].zName; in sqliteAuthRead()
143 zCol = "ROWID"; in sqliteAuthRead()
147 rc = db->xAuth(db->pAuthArg, SQLITE_READ, pTab->zName, zCol, zDBase, in sqliteAuthRead()
154 zDBase, pTab->zName, zCol); in sqliteAuthRead()
156 sqliteErrorMsg(pParse, "access to %s.%s is prohibited", pTab->zName,zCol); in sqliteAuthRead()
H A Dexpr.c423 char *zCol = 0; /* Name of the column. The "Z" */ in lookupName() local
443 zCol = sqliteStrNDup(pColumnToken->z, pColumnToken->n); in lookupName()
444 sqliteDequote(zCol); in lookupName()
475 if( sqliteStrICmp(pCol->zName, zCol)==0 ){ in lookupName()
510 if( sqliteStrICmp(pCol->zName, zCol)==0 ){ in lookupName()
523 if( cnt==0 && cntTab==1 && sqliteIsRowid(zCol) ){ in lookupName()
544 if( zAs!=0 && sqliteStrICmp(zAs, zCol)==0 ){ in lookupName()
549 sqliteFree(zCol); in lookupName()
564 sqliteFree(zCol); in lookupName()
577 sqliteSetString(&z, zDb, ".", zTab, ".", zCol, 0); in lookupName()
[all …]
H A Dselect.c142 static int columnIndex(Table *pTab, const char *zCol){ in columnIndex() argument
145 if( sqliteStrICmp(pTab->aCol[i].zName, zCol)==0 ) return i; in columnIndex()
155 const char *zCol, /* Name of the column */ in addWhereTerm() argument
165 dummy.z = zCol; in addWhereTerm()
166 dummy.n = strlen(zCol); in addWhereTerm()
729 char *zCol; in generateColumnNames() local
737 zCol = "_ROWID_"; in generateColumnNames()
739 zCol = pTab->aCol[iCol].zName; in generateColumnNames()
750 sqliteSetString(&zName, zTab, ".", zCol, 0); in generateColumnNames()
753 sqliteVdbeOp3(v, OP_ColumnName, i, p2, zCol, 0); in generateColumnNames()
H A Dinsert.c811 char *zCol = pTab->aCol[pIdx->aiColumn[j]].zName; in sqliteGenerateConstraintChecks() local
812 n2 = strlen(zCol); in sqliteGenerateConstraintChecks()
822 strcpy(&zErrMsg[n1], zCol); in sqliteGenerateConstraintChecks()
H A Dpragma.c477 sqliteVdbeOp3(v, OP_String, 0, 0, pFK->aCol[j].zCol, 0); in sqlitePragma()
H A DsqliteInt.h549 char *zCol; /* Name of column in zTo. If 0 use PRIMARY KEY */ member
H A Dbuild.c1427 pFKey->aCol[i].zCol = z; in sqliteCreateForeignKey()