/titanic_41/usr/src/lib/libsqlite/src/ |
H A D | build.c | 108 Table *sqliteFindTable(sqlite *db, const char *zName, const char *zDatabase){ in sqliteFindTable() argument 113 if( zDatabase!=0 && sqliteStrICmp(zDatabase, db->aDb[j].zName) ) continue; in sqliteFindTable() 114 p = sqliteHashFind(&db->aDb[j].tblHash, zName, strlen(zName)+1); in sqliteFindTable() 131 Table *sqliteLocateTable(Parse *pParse, const char *zName, const char *zDbase){ in sqliteLocateTable() argument 134 p = sqliteFindTable(pParse->db, zName, zDbase); in sqliteLocateTable() 137 sqliteErrorMsg(pParse, "no such table: %s.%s", zDbase, zName); in sqliteLocateTable() 138 }else if( sqliteFindTable(pParse->db, zName, 0)!=0 ){ in sqliteLocateTable() 140 zName, zDbase); in sqliteLocateTable() 142 sqliteErrorMsg(pParse, "no such table: %s", zName); in sqliteLocateTable() 160 Index *sqliteFindIndex(sqlite *db, const char *zName, const char *zDb){ in sqliteFindIndex() argument [all …]
|
H A D | test2.c | 32 char *zName; in errorName() local 34 case SQLITE_OK: zName = "SQLITE_OK"; break; in errorName() 35 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in errorName() 36 case SQLITE_INTERNAL: zName = "SQLITE_INTERNAL"; break; in errorName() 37 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in errorName() 38 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in errorName() 39 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in errorName() 40 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in errorName() 41 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in errorName() 42 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in errorName() [all …]
|
H A D | test4.c | 358 const char *zName; in tcl_thread_result() local 373 case SQLITE_OK: zName = "SQLITE_OK"; break; in tcl_thread_result() 374 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in tcl_thread_result() 375 case SQLITE_INTERNAL: zName = "SQLITE_INTERNAL"; break; in tcl_thread_result() 376 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in tcl_thread_result() 377 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in tcl_thread_result() 378 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in tcl_thread_result() 379 case SQLITE_LOCKED: zName = "SQLITE_LOCKED"; break; in tcl_thread_result() 380 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in tcl_thread_result() 381 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in tcl_thread_result() [all …]
|
H A D | attach.c | 32 char *zFile, *zName; in sqliteAttach() local 64 zName = 0; in sqliteAttach() 65 sqliteSetNString(&zName, pDbname->z, pDbname->n, 0); in sqliteAttach() 66 if( zName==0 ) return; in sqliteAttach() 67 sqliteDequote(zName); in sqliteAttach() 69 if( db->aDb[i].zName && sqliteStrICmp(db->aDb[i].zName, zName)==0 ){ in sqliteAttach() 70 sqliteErrorMsg(pParse, "database %z is already in use", zName); in sqliteAttach() 92 aNew->zName = zName; in sqliteAttach() 151 if( pDb->pBt==0 || pDb->zName==0 ) continue; in sqliteDetach() 152 if( strlen(pDb->zName)!=pDbname->n ) continue; in sqliteDetach() [all …]
|
H A D | trigger.c | 57 char *zName = 0; /* Name of the trigger */ in sqliteBeginTrigger() local 84 "database %s", db->aDb[tab->iDb].zName); in sqliteBeginTrigger() 88 zName = sqliteStrNDup(pName->z, pName->n); in sqliteBeginTrigger() 89 sqliteDequote(zName); in sqliteBeginTrigger() 90 if( sqliteHashFind(&(db->aDb[iDb].trigHash), zName,pName->n+1) ){ in sqliteBeginTrigger() 94 if( sqliteStrNICmp(tab->zName, "sqlite_", 7)==0 ){ in sqliteBeginTrigger() 112 const char *zDb = db->aDb[tab->iDb].zName; in sqliteBeginTrigger() 113 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; in sqliteBeginTrigger() 115 if( sqliteAuthCheck(pParse, code, zName, tab->zName, zDbTrig) ){ in sqliteBeginTrigger() 136 nt->name = zName; in sqliteBeginTrigger() [all …]
|
H A D | test3.c | 32 char *zName; in errorName() local 34 case SQLITE_OK: zName = "SQLITE_OK"; break; in errorName() 35 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in errorName() 36 case SQLITE_INTERNAL: zName = "SQLITE_INTERNAL"; break; in errorName() 37 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in errorName() 38 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in errorName() 39 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in errorName() 40 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in errorName() 41 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in errorName() 42 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in errorName() [all …]
|
H A D | select.c | 145 if( sqliteStrICmp(pTab->aCol[i].zName, zCol)==0 ) return i; in columnIndex() 170 dummy.z = pTab1->zName; in addWhereTerm() 173 dummy.z = pTab2->zName; in addWhereTerm() 234 if( columnIndex(pOther->pTab, pTab->aCol[j].zName)>=0 ){ in sqliteProcessJoin() 235 addWhereTerm(pTab->aCol[j].zName, pTab, pOther->pTab, &p->pWhere); in sqliteProcessJoin() 274 if( columnIndex(pTerm->pTab, pList->a[j].zName)<0 || in sqliteProcessJoin() 275 columnIndex(pOther->pTab, pList->a[j].zName)<0 ){ in sqliteProcessJoin() 277 "not present in both tables", pList->a[j].zName); in sqliteProcessJoin() 280 addWhereTerm(pList->a[j].zName, pTerm->pTab, pOther->pTab, &p->pWhere); in sqliteProcessJoin() 722 if( pEList->a[i].zName ){ in generateColumnNames() [all …]
|
H A D | main.c | 106 pIndex = sqliteFindIndex(db, argv[1], db->aDb[iDb].zName); in sqliteInitCallback() 151 assert( sqliteStrICmp(pTab->zName, argv[0])==0 ); in upgrade_3_callback() 174 assert( sqliteStrICmp(pTab->zName, argv[0])==0 ); in upgrade_3_callback() 252 pTab = sqliteFindTable(db, zMasterName, db->aDb[iDb].zName); in sqliteInitOne() 309 db->aDb[iDb].zName, (char*)0); in sqliteInitOne() 312 "database: ", db->aDb[iDb].zName, (char*)0); in sqliteInitOne() 343 db->aDb[iDb].zName, "\".", zMasterName, (char*)0); in sqliteInitOne() 347 db->aDb[iDb].zName, "\".", zMasterName, in sqliteInitOne() 516 db->aDb[0].zName = "main"; in sqlite_open() 517 db->aDb[1].zName = "temp"; in sqlite_open() [all …]
|
H A D | auth.c | 138 zCol = pTab->aCol[pExpr->iColumn].zName; in sqliteAuthRead() 141 zCol = pTab->aCol[pTab->iPKey].zName; in sqliteAuthRead() 146 zDBase = db->aDb[pExpr->iDb].zName; 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 D | pragma.c | 119 const char *zName; /* Name of the pragma */ in flagPragma() member 131 if( sqliteStrICmp(zLeft, aPragma[i].zName)==0 ){ in flagPragma() 135 sqliteVdbeOp3(v, OP_ColumnName, 0, 1, aPragma[i].zName, P3_STATIC); in flagPragma() 386 sqliteVdbeOp3(v, OP_String, 0, 0, pTab->aCol[i].zName, 0); in sqlitePragma() 416 sqliteVdbeOp3(v, OP_String, 0, 0, pTab->aCol[cnum].zName, 0); in sqlitePragma() 441 sqliteVdbeOp3(v, OP_String, 0, 0, pIdx->zName, 0); in sqlitePragma() 476 pTab->aCol[pFK->aCol[j].iFrom].zName, 0); in sqlitePragma() 497 assert( db->aDb[i].zName!=0 ); in sqlitePragma() 499 sqliteVdbeOp3(v, OP_String, 0, 0, db->aDb[i].zName, 0); in sqlitePragma() 630 sqliteVdbeChangeP3(v, addr+13, db->aDb[i].zName, P3_STATIC); in sqlitePragma() [all …]
|
H A D | update.c | 127 if( sqliteStrICmp(pTab->aCol[j].zName, pChanges->a[i].zName)==0 ){ in sqliteUpdate() 137 if( sqliteIsRowid(pChanges->a[i].zName) ){ in sqliteUpdate() 141 sqliteErrorMsg(pParse, "no such column: %s", pChanges->a[i].zName); in sqliteUpdate() 148 rc = sqliteAuthCheck(pParse, SQLITE_UPDATE, pTab->zName, in sqliteUpdate() 149 pTab->aCol[j].zName, db->aDb[pTab->iDb].zName); in sqliteUpdate() 210 sqliteAuthContextPush(pParse, &sContext, pTab->zName); in sqliteUpdate()
|
H A D | delete.c | 31 const char *zTab = pSrc->a[i].zName; in sqliteSrcListLookup() 46 sqliteErrorMsg(pParse, "table %s may not be modified", pTab->zName); in sqliteIsReadOnly() 50 sqliteErrorMsg(pParse, "cannot modify %s because it is a view",pTab->zName); in sqliteIsReadOnly() 106 zDb = db->aDb[pTab->iDb].zName; in sqliteDeleteFrom() 107 if( sqliteAuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb) ){ in sqliteDeleteFrom() 139 sqliteAuthContextPush(pParse, &sContext, pTab->zName); in sqliteDeleteFrom()
|
H A D | insert.c | 128 zTab = pTabList->a[0].zName; in sqliteInsert() 135 zDb = db->aDb[pTab->iDb].zName; in sqliteInsert() 136 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) ){ in sqliteInsert() 290 if( sqliteStrICmp(pColumn->a[i].zName, pTab->aCol[j].zName)==0 ){ in sqliteInsert() 299 if( sqliteIsRowid(pColumn->a[i].zName) ){ in sqliteInsert() 303 pTabList, 0, pColumn->a[i].zName); in sqliteInsert() 677 sqliteSetString(&zMsg, pTab->zName, ".", pTab->aCol[i].zName, in sqliteGenerateConstraintChecks() 811 char *zCol = pTab->aCol[pIdx->aiColumn[j]].zName; in sqliteGenerateConstraintChecks() 916 sqliteVdbeOp3(v, OP_OpenWrite, base, pTab->tnum, pTab->zName, P3_STATIC); in sqliteOpenTableAndIndices() 919 sqliteVdbeOp3(v, OP_OpenWrite, i+base, pIdx->tnum, pIdx->zName, P3_STATIC); in sqliteOpenTableAndIndices()
|
H A D | copy.c | 55 zDb = db->aDb[pTab->iDb].zName; in sqliteCopy() 56 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) in sqliteCopy() 57 || sqliteAuthCheck(pParse, SQLITE_COPY, pTab->zName, zFile, zDb) ){ in sqliteCopy()
|
H A D | expr.c | 176 pItem->zName = sqliteStrDup(p->a[i].zName); in sqliteExprListDup() 196 pNewItem->zName = sqliteStrDup(pOldItem->zName); in sqliteSrcListDup() 219 pNewItem->zName = sqliteStrDup(pOldItem->zName); in sqliteIdListDup() 275 sqliteSetNString(&pItem->zName, pName->z, pName->n, 0); in sqliteExprListAppend() 276 sqliteDequote(pItem->zName); in sqliteExprListAppend() 292 sqliteFree(pList->a[i].zName); in sqliteExprListDelete() 463 char *zTabName = pTab->zName; in lookupName() 465 if( zDb!=0 && sqliteStrICmp(db->aDb[pTab->iDb].zName, zDb)!=0 ){ in lookupName() 475 if( sqliteStrICmp(pCol->zName, zCol)==0 ){ in lookupName() 510 if( sqliteStrICmp(pCol->zName, zCol)==0 ){ in lookupName() [all …]
|
H A D | sqliteInt.h | 264 char *zName; /* Name of this database */ member 446 char *zName; /* Name of this column */ member 500 char *zName; /* Name of the table */ member 623 char *zName; /* Name of this index */ member 729 char *zName; /* Token associated with this expression */ member 755 char *zName; /* Name of the identifier */ member 776 char *zName; /* Name of the table */ member
|
H A D | func.c | 671 char *zName; in sqliteRegisterBuiltinFunctions() member 713 char *zName; in sqliteRegisterBuiltinFunctions() member 740 sqlite_create_function(db, aFuncs[i].zName, in sqliteRegisterBuiltinFunctions() 743 sqlite_function_type(db, aFuncs[i].zName, aFuncs[i].dataType); in sqliteRegisterBuiltinFunctions() 753 sqlite_create_aggregate(db, aAggs[i].zName, in sqliteRegisterBuiltinFunctions() 755 sqlite_function_type(db, aAggs[i].zName, aAggs[i].dataType); in sqliteRegisterBuiltinFunctions()
|
H A D | tokenize.c | 34 char *zName; /* The keyword name */ member 169 aKeywordTable[i].len = strlen(aKeywordTable[i].zName); in sqliteKeywordCode() 170 h = sqliteHashNoCase(aKeywordTable[i].zName, aKeywordTable[i].len); in sqliteKeywordCode() 182 if( p->len==n && sqliteStrNICmp(p->zName, z, n)==0 ){ in sqliteKeywordCode()
|
H A D | date.c | 857 char *zName; in sqliteRegisterDateTimeFunctions() member 871 sqlite_create_function(db, aFuncs[i].zName, in sqliteRegisterDateTimeFunctions() 874 sqlite_function_type(db, aFuncs[i].zName, aFuncs[i].dataType); in sqliteRegisterDateTimeFunctions()
|
H A D | tclsqlite.c | 850 char *zName; in DbObjCmd() local 857 zName = Tcl_GetStringFromObj(objv[2], 0); in DbObjCmd() 865 sqlite_create_function(pDb->db, zName, -1, tclSqlFunc, pFunc); in DbObjCmd() 866 sqlite_function_type(pDb->db, zName, SQLITE_NUMERIC); in DbObjCmd()
|
H A D | printf.c | 589 (*func)(arg, pItem->zName, strlen(pItem->zName)); in vxprintf()
|
H A D | test1.c | 983 char *zName; in Sqlitetest1_Init() member 1015 Tcl_CreateCommand(interp, aCmd[i].zName, aCmd[i].xProc, 0, 0); in Sqlitetest1_Init()
|
H A D | where.c | 712 pTab->zName, P3_STATIC); in sqliteWhereBegin() 716 sqliteVdbeOp3(v, OP_OpenRead, pWInfo->a[i].iCur, pIx->tnum, pIx->zName,0); in sqliteWhereBegin()
|
H A D | sqlite.h.in | 454 const char *zName, /* Name of the new function */ 461 const char *zName, /* Name of the function */ 481 const char *zName, /* Name of the function */
|
/titanic_41/usr/src/cmd/sqlite/ |
H A D | shell.c | 422 static void set_table_name(struct callback_data *p, const char *zName){ in set_table_name() argument 431 if( zName==0 ) return; in set_table_name() 432 needQuote = !isalpha(*zName) && *zName!='_'; in set_table_name() 433 for(i=n=0; zName[i]; i++, n++){ in set_table_name() 434 if( !isalnum(zName[i]) && zName[i]!='_' ){ in set_table_name() 436 if( zName[i]=='\'' ) n++; in set_table_name() 447 for(i=0; zName[i]; i++){ in set_table_name() 448 z[n++] = zName[i]; in set_table_name() 449 if( zName[i]=='\'' ) z[n++] = '\''; in set_table_name()
|