/external/chromium_org/third_party/sqlite/src/src/ |
D | callback.c | 23 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){ in callCollNeeded() argument 26 char *zExternal = sqlite3DbStrDup(db, zName); in callCollNeeded() 35 sqlite3ValueSetStr(pTmp, -1, zName, SQLITE_UTF8, SQLITE_STATIC); in callCollNeeded() 54 char *z = pColl->zName; in synthCollSeq() 86 const char *zName /* Collating sequence name */ in sqlite3GetCollSeq() argument 92 p = sqlite3FindCollSeq(db, enc, zName, 0); in sqlite3GetCollSeq() 98 callCollNeeded(db, enc, zName); in sqlite3GetCollSeq() 99 p = sqlite3FindCollSeq(db, enc, zName, 0); in sqlite3GetCollSeq() 121 const char *zName = pColl->zName; in sqlite3CheckCollSeq() local 123 CollSeq *p = sqlite3GetCollSeq(db, ENC(db), pColl, zName); in sqlite3CheckCollSeq() [all …]
|
D | alter.c | 286 zWhere = whereOrName(pParse->db, zWhere, p->pFrom->zName); in whereForeignKeys() 312 zWhere = whereOrName(db, zWhere, pTrig->zName); in whereTempTriggers() 332 static void reloadTableSchema(Parse *pParse, Table *pTab, const char *zName){ in reloadTableSchema() argument 351 sqlite3VdbeAddOp4(v, OP_DropTrigger, iTrigDb, 0, 0, pTrig->zName, 0); in reloadTableSchema() 356 sqlite3VdbeAddOp4(v, OP_DropTable, iDb, 0, 0, pTab->zName, 0); in reloadTableSchema() 359 zWhere = sqlite3MPrintf(pParse->db, "tbl_name=%Q", zName); in reloadTableSchema() 381 static int isSystemTable(Parse *pParse, const char *zName){ in isSystemTable() argument 382 if( sqlite3Strlen30(zName)>6 && 0==sqlite3StrNICmp(zName, "sqlite_", 7) ){ in isSystemTable() 383 sqlite3ErrorMsg(pParse, "table %s may not be altered", zName); in isSystemTable() 401 char *zName = 0; /* NULL-terminated version of pName */ in sqlite3AlterRenameTable() local [all …]
|
D | build.c | 48 const char *zName; /* Name of the table */ member 66 const char *zName /* Name of the table to be locked */ in sqlite3TableLock() argument 90 p->zName = zName; in sqlite3TableLock() 112 p->zName, P4_STATIC); in codeTableLocks() 272 Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){ in sqlite3FindTable() argument 276 assert( zName!=0 ); in sqlite3FindTable() 277 nName = sqlite3Strlen30(zName); in sqlite3FindTable() 282 if( zDatabase!=0 && sqlite3StrICmp(zDatabase, db->aDb[j].zName) ) continue; in sqlite3FindTable() 284 p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName); in sqlite3FindTable() 303 const char *zName, /* Name of the table we are looking for */ in sqlite3LocateTable() argument [all …]
|
D | trigger.c | 61 && 0==sqlite3StrICmp(pTrig->table, pTab->zName) in sqlite3TriggerList() 94 char *zName = 0; /* Name of the trigger */ in sqlite3BeginTrigger() local 165 zName = sqlite3NameFromToken(db, pName); in sqlite3BeginTrigger() 166 if( !zName || SQLITE_OK!=sqlite3CheckObjectName(pParse, zName) ){ in sqlite3BeginTrigger() 171 zName, sqlite3Strlen30(zName)) ){ in sqlite3BeginTrigger() 182 if( sqlite3StrNICmp(pTab->zName, "sqlite_", 7)==0 ){ in sqlite3BeginTrigger() 206 const char *zDb = db->aDb[iTabDb].zName; in sqlite3BeginTrigger() 207 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; in sqlite3BeginTrigger() 209 if( sqlite3AuthCheck(pParse, code, zName, pTab->zName, zDbTrig) ){ in sqlite3BeginTrigger() 230 pTrigger->zName = zName; in sqlite3BeginTrigger() [all …]
|
D | test7.c | 392 const char *zName; in tcl_client_result() local 407 case SQLITE_OK: zName = "SQLITE_OK"; break; in tcl_client_result() 408 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in tcl_client_result() 409 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in tcl_client_result() 410 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in tcl_client_result() 411 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in tcl_client_result() 412 case SQLITE_LOCKED: zName = "SQLITE_LOCKED"; break; in tcl_client_result() 413 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in tcl_client_result() 414 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in tcl_client_result() 415 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in tcl_client_result() [all …]
|
D | test2.c | 26 char *zName; in errorName() local 28 case SQLITE_OK: zName = "SQLITE_OK"; break; in errorName() 29 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in errorName() 30 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in errorName() 31 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in errorName() 32 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in errorName() 33 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in errorName() 34 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in errorName() 35 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in errorName() 36 case SQLITE_IOERR: zName = "SQLITE_IOERR"; break; in errorName() [all …]
|
D | test4.c | 361 const char *zName; in tcl_thread_result() local 376 case SQLITE_OK: zName = "SQLITE_OK"; break; in tcl_thread_result() 377 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in tcl_thread_result() 378 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in tcl_thread_result() 379 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in tcl_thread_result() 380 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in tcl_thread_result() 381 case SQLITE_LOCKED: zName = "SQLITE_LOCKED"; break; in tcl_thread_result() 382 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in tcl_thread_result() 383 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in tcl_thread_result() 384 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in tcl_thread_result() [all …]
|
D | test3.c | 26 char *zName; in errorName() local 28 case SQLITE_OK: zName = "SQLITE_OK"; break; in errorName() 29 case SQLITE_ERROR: zName = "SQLITE_ERROR"; break; in errorName() 30 case SQLITE_PERM: zName = "SQLITE_PERM"; break; in errorName() 31 case SQLITE_ABORT: zName = "SQLITE_ABORT"; break; in errorName() 32 case SQLITE_BUSY: zName = "SQLITE_BUSY"; break; in errorName() 33 case SQLITE_NOMEM: zName = "SQLITE_NOMEM"; break; in errorName() 34 case SQLITE_READONLY: zName = "SQLITE_READONLY"; break; in errorName() 35 case SQLITE_INTERRUPT: zName = "SQLITE_INTERRUPT"; break; in errorName() 36 case SQLITE_IOERR: zName = "SQLITE_IOERR"; break; in errorName() [all …]
|
D | test_multiplex.c | 101 char *zName; /* Base filename of this group */ member 168 char *zName; member 204 memcpy(gMultiplex.zName, pGroup->zName, pGroup->nName+1); in multiplexSubOpen() 207 …sqlite3_snprintf(SQLITE_MULTIPLEX_EXT_SZ+1, gMultiplex.zName+pGroup->nName-SQLITE_MULTIPLEX_EXT_SZ… in multiplexSubOpen() 209 …sqlite3_snprintf(SQLITE_MULTIPLEX_EXT_SZ+1, gMultiplex.zName+pGroup->nName, SQLITE_MULTIPLEX_EXT_F… in multiplexSubOpen() 212 *rc = pOrigVfs->xOpen(pOrigVfs, gMultiplex.zName, pSubOpen, pGroup->flags, pOutFlags); in multiplexSubOpen() 293 const char *zName, /* Name of file to be opened */ in multiplexOpen() argument 303 int nName = multiplexStrlen30(zName); in multiplexOpen() 347 pGroup->zName = p; in multiplexOpen() 349 memcpy(pGroup->zName, zName, nName+1); in multiplexOpen() [all …]
|
D | attach.c | 71 const char *zName; in attachFunc() local 79 zName = (const char *)sqlite3_value_text(argv[1]); in attachFunc() 81 if( zName==0 ) zName = ""; in attachFunc() 100 char *z = db->aDb[i].zName; in attachFunc() 101 assert( z && zName ); in attachFunc() 102 if( sqlite3StrICmp(z, zName)==0 ){ in attachFunc() 103 zErrDyn = sqlite3MPrintf(db, "database %s is already in use", zName); in attachFunc() 149 aNew->zName = sqlite3DbStrDup(db, zName); in attachFunc() 150 if( rc==SQLITE_OK && aNew->zName==0 ){ in attachFunc() 241 const char *zName = (const char *)sqlite3_value_text(argv[0]); in detachFunc() local [all …]
|
D | vtab.c | 24 const char *zName, /* Name assigned to this module */ in createModule() argument 33 nName = sqlite3Strlen30(zName); in createModule() 38 memcpy(zCopy, zName, nName+1); in createModule() 39 pMod->zName = zCopy; in createModule() 66 const char *zName, /* Name assigned to this module */ in sqlite3_create_module() argument 70 return createModule(db, zName, pModule, pAux, 0); in sqlite3_create_module() 78 const char *zName, /* Name assigned to this module */ in sqlite3_create_module_v2() argument 83 return createModule(db, zName, pModule, pAux, xDestroy); in sqlite3_create_module_v2() 287 addModuleArgument(db, pTable, sqlite3DbStrDup(db, db->aDb[iDb].zName)); in sqlite3VtabBeginParse() 288 addModuleArgument(db, pTable, sqlite3DbStrDup(db, pTable->zName)); in sqlite3VtabBeginParse() [all …]
|
D | test_loadext.c | 42 const char *zName; in statusFunc() local 44 const char *zName; in statusFunc() member 55 zName = (const char*)sqlite3_value_text(argv[0]); in statusFunc() 57 if( strcmp(aOp[i].zName, zName)==0 ){ in statusFunc() 63 char *zMsg = sqlite3_mprintf("unknown status property: %s", zName); in statusFunc()
|
D | test_syscall.c | 112 const char *zName; member 181 for(i=0; aSyscall[i].zName; i++){ in tsErrno() 182 if( strlen(aSyscall[i].zName)!=nFunc ) continue; in tsErrno() 183 if( memcmp(aSyscall[i].zName, zFunc, nFunc) ) continue; in tsErrno() 406 aSyscall[iCall].xOrig = pVfs->xGetSystemCall(pVfs, aSyscall[iCall].zName); in test_syscall_install() 407 pVfs->xSetSystemCall(pVfs, aSyscall[iCall].zName, aSyscall[iCall].xTest); in test_syscall_install() 430 for(i=0; aSyscall[i].zName; i++){ in test_syscall_uninstall() 432 pVfs->xSetSystemCall(pVfs, aSyscall[i].zName, 0); in test_syscall_uninstall() 457 for(i=0; aSyscall[i].zName; i++) aSyscall[i].xOrig = 0; in test_syscall_reset() 462 for(i=0; rc==SQLITE_OK && aSyscall[i].zName; i++){ in test_syscall_reset() [all …]
|
D | test_intarray.c | 221 const char *zName, in sqlite3_intarray_create() argument 233 rc = sqlite3_create_module_v2(db, zName, &intarrayModule, p, in sqlite3_intarray_create() 238 zName, zName); in sqlite3_intarray_create() 296 const char *zName; in test_intarray_create() local 306 zName = Tcl_GetString(objv[2]); in test_intarray_create() 308 rc = sqlite3_intarray_create(db, zName, &pArray); in test_intarray_create() 366 char *zName; in Sqlitetestintarray_Init() member 375 Tcl_CreateObjCommand(interp, aObjCmd[i].zName, in Sqlitetestintarray_Init()
|
D | test_journal.c | 116 const char *zName; /* Name of open file */ member 154 static int jtDelete(sqlite3_vfs*, const char *zName, int syncDir); 155 static int jtAccess(sqlite3_vfs*, const char *zName, int flags, int *); 156 static int jtFullPathname(sqlite3_vfs*, const char *zName, int, char *zOut); 256 if( p->zName ){ in jtClose() 297 && (strlen(pMain->zName)==nName) in locateDatabaseHandle() 298 && 0==memcmp(pMain->zName, zJournal, nName) in locateDatabaseHandle() 518 jt_file *pMain = locateDatabaseHandle(p->zName); in jtWrite() 562 jt_file *pMain = locateDatabaseHandle(p->zName); in jtWrite() 576 jt_file *pMain = locateDatabaseHandle(p->zName); in jtTruncate() [all …]
|
D | pragma.c | 166 const char *zName; /* Name of the pragma */ in flagPragma() member 206 if( sqlite3StrICmp(zLeft, p->zName)==0 ){ in flagPragma() 213 returnSingleInt(pParse, p->zName, (db->flags & p->mask)!=0 ); in flagPragma() 248 const char *zName; in actionName() local 250 case OE_SetNull: zName = "SET NULL"; break; in actionName() 251 case OE_SetDflt: zName = "SET DEFAULT"; break; in actionName() 252 case OE_Cascade: zName = "CASCADE"; break; in actionName() 253 case OE_Restrict: zName = "RESTRICT"; break; in actionName() 254 default: zName = "NO ACTION"; in actionName() 257 return zName; in actionName() [all …]
|
D | analyze.c | 41 const char *zName; in openStatTable() member 63 const char *zTab = aTable[i].zName; in openStatTable() 65 if( (pStat = sqlite3FindTable(db, zTab, pDb->zName))==0 ){ in openStatTable() 71 "CREATE TABLE %Q.%s(%s)", pDb->zName, zTab, aTable[i].zCols in openStatTable() 83 "DELETE FROM %Q.%s WHERE %s=%Q", pDb->zName, zTab, zWhereType, zWhere in openStatTable() 145 if( sqlite3_strnicmp(pTab->zName, "sqlite_", 7)==0 ){ in analyzeOneTable() 154 if( sqlite3AuthCheck(pParse, SQLITE_ANALYZE, pTab->zName, 0, in analyzeOneTable() 155 db->aDb[iDb].zName ) ){ in analyzeOneTable() 161 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName); in analyzeOneTable() 164 sqlite3VdbeAddOp4(v, OP_String8, 0, regTabname, 0, pTab->zName, 0); in analyzeOneTable() [all …]
|
D | test5.c | 94 char *zName; in name_to_enc() member 105 for(pEnc=&encnames[0]; pEnc->zName; pEnc++){ in name_to_enc() 106 if( 0==sqlite3StrICmp(z, pEnc->zName) ){ in name_to_enc() 205 char *zName; in Sqlitetest5_Init() member 215 Tcl_CreateObjCommand(interp, aCmd[i].zName, aCmd[i].xProc, 0, 0); in Sqlitetest5_Init()
|
D | test_quota.c | 289 const char *zName, /* Name of file to be opened */ in quotaOpen() argument 305 return pOrigVfs->xOpen(pOrigVfs, zName, pConn, flags, pOutFlags); in quotaOpen() 312 pGroup = quotaGroupFind(zName); in quotaOpen() 314 rc = pOrigVfs->xOpen(pOrigVfs, zName, pConn, flags, pOutFlags); in quotaOpen() 320 rc = pOrigVfs->xOpen(pOrigVfs, zName, pSubOpen, flags, pOutFlags); in quotaOpen() 322 for(pFile=pGroup->pFiles; pFile && strcmp(pFile->zFilename, zName); in quotaOpen() 325 int nName = strlen(zName); in quotaOpen() 334 memcpy(pFile->zFilename, zName, nName+1); in quotaOpen() 590 gQuota.sThisVfs.zName = "quota"; in sqlite3_quota_initialize() 790 const char *zName; /* Name of new quota VFS */ in test_quota_initialize() local [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/fts2/ |
D | fts2_tokenizer.c | 67 const unsigned char *zName; in scalarFunc() local 74 zName = sqlite3_value_text(argv[0]); in scalarFunc() 85 pOld = sqlite3Fts2HashInsert(pHash, (void *)zName, nName, pPtr); in scalarFunc() 91 pPtr = sqlite3Fts2HashFind(pHash, zName, nName); in scalarFunc() 93 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in scalarFunc() 146 const char *zName; in testFunc() local 164 zName = (const char *)sqlite3_value_text(argv[0]); in testFunc() 173 p = (sqlite3_tokenizer_module *)sqlite3Fts2HashFind(pHash, zName, nName+1); in testFunc() 176 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in testFunc() 225 char *zName, in registerTokenizer() argument [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
D | fts3_tokenizer.c | 64 const unsigned char *zName; in scalarFunc() local 71 zName = sqlite3_value_text(argv[0]); in scalarFunc() 82 pOld = sqlite3Fts3HashInsert(pHash, (void *)zName, nName, pPtr); in scalarFunc() 88 pPtr = sqlite3Fts3HashFind(pHash, zName, nName); in scalarFunc() 90 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in scalarFunc() 252 const char *zName; in testFunc() local 270 zName = (const char *)sqlite3_value_text(argv[0]); in testFunc() 279 p = (sqlite3_tokenizer_module *)sqlite3Fts3HashFind(pHash, zName, nName+1); in testFunc() 282 char *zErr = sqlite3_mprintf("unknown tokenizer: %s", zName); in testFunc() 331 char *zName, in registerTokenizer() argument [all …]
|
/external/chromium_org/third_party/sqlite/ |
D | memcmp.patch | 17 - if( memcmp(pTab->zName, "sqlite_", 7)==0 ){ 18 + if( sqlite3_strnicmp(pTab->zName, "sqlite_", 7)==0 ){ 38 if( sqlite3StrNICmp(pTab->zName, "sqlite_", 7)==0 39 - && memcmp(&pTab->zName[7],"altertab_",9)!=0 ){ 40 + && sqlite3StrNICmp(&pTab->zName[7],"altertab_",9)!=0 ){ 41 sqlite3ErrorMsg(pParse, "table %s may not be indexed", pTab->zName); 70 - if( memcmp(pVfs->zName,"unix-excl",10)==0 ){ 71 + if( strcmp(pVfs->zName,"unix-excl")==0 ){ 79 @@ -1222,7 +1222,7 @@ int sqlite3VdbeParameterIndex(Vdbe *p, const char *zName, int nName){ 80 if( zName ){ [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/async/ |
D | sqlite3async.c | 519 char *zName; /* Underlying OS filename - used for debugging */ member 554 pWrite->pFileData ? pWrite->pFileData->zName : "-", pWrite->iOffset)); in addAsyncWrite() 694 ASYNC_TRACE(("READ %s %d bytes at %d\n", p->zName, nRead, iOffset)); in asyncRead() 700 char *zName = p->zName; in asyncRead() local 705 (zName && pWrite->pFileData->zName==zName) in asyncRead() 786 && p->zName in asyncFileSize() 787 && strcmp(p->zName, pWrite->zBuf)==0 in asyncFileSize() 792 || (p->zName && pWrite->pFileData->zName==p->zName) in asyncFileSize() 849 static AsyncLock *findLock(const char *zName, int nName){ in findLock() argument 851 while( p && (p->nFile!=nName || memcmp(p->zFile, zName, nName)) ){ in findLock() [all …]
|
/external/chromium_org/third_party/sqlite/src/tool/ |
D | mkkeywordhash.c | 36 char *zName; /* The keyword name */ member 302 n = strcmp(pA->zName, pB->zName); in keywordCompare1() 312 n = strcmp(pA->zName, pB->zName); in keywordCompare2() 363 p->len = strlen(p->zName); in main() 365 strcpy(p->zOrigName, p->zName); in main() 367 p->hash = (UpperToLower[(int)p->zName[0]]*4) ^ in main() 368 (UpperToLower[(int)p->zName[p->len-1]]*3) ^ p->len; in main() 383 if( memcmp(p->zName, &pOther->zName[k], p->len)==0 ){ in main() 402 if( memcmp(&p->zName[p->len-k], pOther->zName, k)==0 ){ in main() 424 if( memcmp(&p->zName[p->len-k], pOther->zName, k)==0 ){ in main() [all …]
|
/external/chromium_org/third_party/sqlite/src/ext/icu/ |
D | icu.c | 207 const char *zName, /* Name of ICU function that failed */ in icuFunctionError() argument 211 sqlite3_snprintf(128, zBuf, "ICU error: %s(): %s", zName, u_errorName(e)); in icuFunctionError() 420 const char *zName; /* SQL Collation sequence name (eg. "japanese") */ in icuLoadCollation() local 426 zName = (const char *)sqlite3_value_text(apArg[1]); in icuLoadCollation() 428 if( !zLocale || !zName ){ in icuLoadCollation() 439 rc = sqlite3_create_collation_v2(db, zName, SQLITE_UTF16, (void *)pUCollator, in icuLoadCollation() 453 const char *zName; /* Function name */ in sqlite3IcuInit() member 483 db, p->zName, p->nArg, p->enc, p->pContext, p->xFunc, 0, 0 in sqlite3IcuInit()
|