| /sqlite-3.40.0/src/ |
| H A D | callback.c | 54 char *z = pColl->zName; in synthCollSeq() 81 const char *zName = pColl->zName; in sqlite3CheckCollSeq() local 120 pColl[0].zName = (char*)&pColl[3]; in findCollSeqEntry() 122 pColl[1].zName = (char*)&pColl[3]; in findCollSeqEntry() 124 pColl[2].zName = (char*)&pColl[3]; in findCollSeqEntry() 126 memcpy(pColl[0].zName, zName, nName); in findCollSeqEntry() 168 if( zName ){ in sqlite3FindCollSeq() 221 callCollNeeded(db, enc, zName); in sqlite3GetCollSeq() 358 const char *zName = aDef[i].zName; in sqlite3InsertBuiltinFuncs() local 359 int nName = sqlite3Strlen30(zName); in sqlite3InsertBuiltinFuncs() [all …]
|
| H A D | build.c | 525 return zName; in sqlite3PreferredTableName() 837 char *zName = pIndex->zName; in deleteTable() local 913 char *zName; in sqlite3NameFromToken() local 918 zName = 0; in sqlite3NameFromToken() 920 return zName; in sqlite3NameFromToken() 944 if( zName ){ in sqlite3FindDbName() 1312 pTable->zName = zName; in sqlite3StartTable() 4138 memcpy(pIndex->zName, zName, nName+1); in sqlite3CreateIndex() 5171 if( zName ){ in sqlite3Savepoint() 5638 zName = pCte->zName; in sqlite3WithAdd() [all …]
|
| H A D | main.c | 1574 if( zName==0 ){ in sqlite3ErrName() 1577 zName = zBuf; in sqlite3ErrName() 1579 return zName; in sqlite3ErrName() 2106 const char *zName, in sqlite3_overload_function() argument 2697 const char *zName, in createCollation() argument 3577 const char *zName, in sqlite3_create_collation() argument 3590 const char *zName, in sqlite3_create_collation_v2() argument 3615 const void *zName, in sqlite3_create_collation16() argument 4488 while( zName[-1]!=0 || zName[-2]!=0 || zName[-3]!=0 || zName[-4]!=0 ){ in databaseName() 4489 zName--; in databaseName() [all …]
|
| H A D | trigger.c | 190 if( zName==0 ){ in sqlite3BeginTrigger() 194 if( sqlite3CheckObjectName(pParse, zName, "trigger", pTab->zName) ){ in sqlite3BeginTrigger() 237 if( sqlite3AuthCheck(pParse, code, zName, pTab->zName, zDbTrig) ){ in sqlite3BeginTrigger() 258 pTrigger->zName = zName; in sqlite3BeginTrigger() 259 zName = 0; in sqlite3BeginTrigger() 324 zName = pTrig->zName; in sqlite3FinishTrigger() 620 const char *zName; in sqlite3DropTrigger() local 630 zName = pName->a[0].zName; in sqlite3DropTrigger() 682 if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || in sqlite3DropTriggerPtr() 864 pSrc->a[0].zName = zName; in sqlite3TriggerStepSrc() [all …]
|
| H A D | vtab.c | 50 zCopy = (char*)zName; in sqlite3VtabCreateModule() 53 int nName = sqlite3Strlen30(zName); in sqlite3VtabCreateModule() 60 memcpy(zCopy, zName, nName+1); in sqlite3VtabCreateModule() 61 pMod->zName = zCopy; in sqlite3VtabCreateModule() 493 pTab->zName, in sqlite3VtabFinishParse() 494 pTab->zName, in sqlite3VtabFinishParse() 514 const char *zName = pTab->zName; in sqlite3VtabFinishParse() local 515 assert( zName!=0 ); in sqlite3VtabFinishParse() 1182 memcpy((char*)&pNew[1], pDef->zName, sqlite3Strlen30(pDef->zName)+1); in sqlite3VtabOverloadFunction() 1239 pTab->zName = sqlite3DbStrDup(db, pMod->zName); in sqlite3VtabEponymousTableInit() [all …]
|
| H A D | attach.c | 54 sqlite3StrICmp(db->aDb[iDb].zDbSName, zName)==0 in sqlite3DbIsNamed() 55 || (iDb==0 && sqlite3StrICmp("main", zName)==0) in sqlite3DbIsNamed() 82 const char *zName; in attachFunc() local 94 zName = (const char *)sqlite3_value_text(argv[1]); in attachFunc() 96 if( zName==0 ) zName = ""; in attachFunc() 131 assert( zName ); in attachFunc() 132 if( sqlite3DbIsNamed(db, i, zName) ){ in attachFunc() 169 pNew->zDbSName = sqlite3DbStrDup(db, zName); in attachFunc() 220 rc = sqlite3UserAuthCheckLogin(db, zName, &newAuth); in attachFunc() 281 if( zName==0 ) zName = ""; in detachFunc() [all …]
|
| H A D | alter.c | 170 if( SQLITE_OK!=sqlite3CheckObjectName(pParse,zName,"table",zName) ){ in sqlite3AlterRenameTable() 211 zTabName = pTab->zName; in sqlite3AlterRenameTable() 238 zName, zName, zName, in sqlite3AlterRenameTable() 249 zDb, zName, pTab->zName); in sqlite3AlterRenameTable() 265 , zDb, zTabName, zName, zTabName, zDb, zName); in sqlite3AlterRenameTable() 286 sqlite3DbFree(db, zName); in sqlite3AlterRenameTable() 530 pNew->zName = sqlite3MPrintf(db, "sqlite_altertab_%s", pTab->zName); in sqlite3AlterBeginAddColumn() 576 zType, pTab->zName in isRealTable() 658 pTab->zName in sqlite3AlterRenameColumn() 1091 && ALWAYS(zName!=0) in renameColumnElistNames() [all …]
|
| H A D | test_multiplex.c | 267 if( pGroup->zName && pGroup->aReal[iChunk].z==0 ){ in multiplexSubFilename() 496 nName = zName ? multiplexStrlen30(zName) : 0; in multiplexOpen() 516 if( zName ){ in multiplexOpen() 518 pGroup->zName = p; in multiplexOpen() 519 memcpy(pGroup->zName, zName, nName+1); in multiplexOpen() 546 if( rc==SQLITE_OK && zName ){ in multiplexOpen() 623 int nName = (int)strlen(zName); in multiplexDelete() 1253 zName = Tcl_GetString(objv[1]); in test_multiplex_initialize() 1255 if( zName[0]=='\0' ) zName = 0; in test_multiplex_initialize() 1309 const char *zName; in test_multiplex_control() member [all …]
|
| H A D | test_syscall.c | 128 const char *zName; member 201 for(i=0; aSyscall[i].zName; i++){ in tsErrno() 202 if( strlen(aSyscall[i].zName)!=nFunc ) continue; in tsErrno() 203 if( memcmp(aSyscall[i].zName, zFunc, nFunc) ) continue; in tsErrno() 476 for(i=0; aSyscall[i].zName; i++){ in test_syscall_uninstall() 478 pVfs->xSetSystemCall(pVfs, aSyscall[i].zName, 0); in test_syscall_uninstall() 503 for(i=0; aSyscall[i].zName; i++) aSyscall[i].xOrig = 0; in test_syscall_reset() 508 for(i=0; rc==SQLITE_OK && aSyscall[i].zName; i++){ in test_syscall_reset() 509 if( strlen(aSyscall[i].zName)!=nFunc ) continue; in test_syscall_reset() 713 const char *zName; in test_syscall() member [all …]
|
| H A D | pragma.c | 242 const char *zName; in actionName() local 251 return zName; in actionName() 289 rc = sqlite3_stricmp(zName, aPragmaName[mid].zName); in pragmaLocate() 341 p->zName, isBuiltin, in pragmaFunclistLine() 1312 pIdx->zName, in sqlite3Pragma() 1381 pIdx->zName, in sqlite3Pragma() 1807 pTab->zName); in sqlite3Pragma() 1951 pTab->zName); in sqlite3Pragma() 2078 char *zName; in sqlite3Pragma() member 2113 if( !pEnc->zName ){ in sqlite3Pragma() [all …]
|
| H A D | test_intarray.c | 225 const char *zName, in sqlite3_intarray_create() argument 237 rc = sqlite3_create_module_v2(db, zName, &intarrayModule, p, in sqlite3_intarray_create() 242 zName, zName); in sqlite3_intarray_create() 307 const char *zName; in test_intarray_create() local 317 zName = Tcl_GetString(objv[2]); in test_intarray_create() 319 rc = sqlite3_intarray_create(db, zName, &pArray); in test_intarray_create() 377 char *zName; in Sqlitetestintarray_Init() member 386 Tcl_CreateObjCommand(interp, aObjCmd[i].zName, in Sqlitetestintarray_Init()
|
| H A D | test_journal.c | 114 const char *zName; /* Name of open file */ member 255 if( p->zName ){ in jtClose() 298 && ((int)strlen(pMain->zName)==nName) in locateDatabaseHandle() 299 && 0==memcmp(pMain->zName, zJournal, nName) in locateDatabaseHandle() 522 jt_file *pMain = locateDatabaseHandle(p->zName, 0); in jtWrite() 570 jt_file *pMain = locateDatabaseHandle(p->zName, 0); in jtWrite() 584 jt_file *pMain = locateDatabaseHandle(p->zName, 0); in jtTruncate() 612 pMain = locateDatabaseHandle(p->zName, 0); in jtSync() 698 const char *zName, in jtOpen() argument 713 p->zName = zName; in jtOpen() [all …]
|
| H A D | vdbevtab.c | 43 const char *zName; /* tables_used.name */ member 136 pCur->zName = 0; in bytecodevtabCursorClear() 161 if( pCur->zName ){ in bytecodevtabNext() 162 pCur->zName = 0; in bytecodevtabNext() 216 pCur->zName = pTab->zName; in bytecodevtabColumn() 221 if( pCur->zName==0 ){ in bytecodevtabColumn() 225 pCur->zName = pIdx->zName; in bytecodevtabColumn() 288 sqlite3_result_text(ctx, pCur->zName, -1, SQLITE_STATIC); in bytecodevtabColumn()
|
| H A 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()
|
| /sqlite-3.40.0/test/ |
| H A D | scanstatus.test | 107 nLoop 1 nVisit 1 nEst 1.0 zName x1 115 nLoop 1 nVisit 1 nEst 10.0 zName x1j 139 nLoop 1 nVisit 2 nEst 16384.0 zName x1j 152 nLoop 1 nVisit 2 nEst 16384.0 zName x2j 160 nLoop 1 nVisit 0 nEst 8.0 zName x2ij 168 nLoop 1 nVisit 0 nEst 8.0 zName x2ij 176 nLoop 1 nVisit 1 nEst 8.0 zName x2ij 196 nLoop 1 nVisit 1 nEst 10.0 zName a1a 198 nLoop 1 nVisit 1 nEst 10.0 zName a1bc 227 nLoop 1 nVisit 4 nEst 40.0 zName a1a [all …]
|
| H A D | threadtest5.c | 151 const char *zName = (const char*)pArg; in worker() local 155 printf("%s: startup\n", zName); in worker() 166 q1 = prepare(db, zName, __LINE__, in worker() 169 "RETURNING tid", zName in worker() 181 exec(db, zName, __LINE__, in worker() 186 waitOnTable(db, zName, "p1"); in worker() 191 exec(db, zName, __LINE__, in worker() 196 exec(db, zName, __LINE__, in worker() 204 waitOnTable(db, zName, "p2"); in worker() 208 exec(db, zName, __LINE__, in worker() [all …]
|
| /sqlite-3.40.0/ext/fts2/ |
| H A D | fts2_tokenizer.c | 64 const unsigned char *zName; in scalarFunc() local 71 zName = sqlite3_value_text(argv[0]); in scalarFunc() 88 pPtr = sqlite3Fts2HashFind(pHash, zName, nName); in scalarFunc() 147 const char *zName; in testFunc() local 165 zName = (const char *)sqlite3_value_text(argv[0]); in testFunc() 226 char *zName, in registerTokenizer() argument 238 sqlite3_bind_text(pStmt, 1, zName, -1, SQLITE_STATIC); in registerTokenizer() 248 char *zName, in queryFts2Tokenizer() argument 343 const char *zName in sqlite3Fts2InitHashTable() argument 353 zTest = sqlite3_mprintf("%s_test", zName); in sqlite3Fts2InitHashTable() [all …]
|
| /sqlite-3.40.0/ext/async/ |
| H A D | sqlite3async.c | 700 char *zName = p->zName; in asyncRead() local 705 (zName && pWrite->pFileData->zName==zName) in asyncRead() 792 || (p->zName && pWrite->pFileData->zName==p->zName) in asyncFileSize() 866 if( p->zName ){ in asyncLock() 900 if( p->zName ){ in asyncUnlock() 1051 if( zName ){ in asyncOpen() 1073 if( zName ){ in asyncOpen() 1077 memcpy(pData->zName, zName, nName); in asyncOpen() 1131 if( zName ){ in asyncOpen() 1209 && 0==strcmp(p->pFileData->zName, zName) in asyncAccess() [all …]
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3_tokenizer.c | 71 const unsigned char *zName; in fts3TokenizerFunc() local 78 zName = sqlite3_value_text(argv[0]); in fts3TokenizerFunc() 85 if( zName==0 || n!=sizeof(pPtr) ){ in fts3TokenizerFunc() 99 if( zName ){ in fts3TokenizerFunc() 100 pPtr = sqlite3Fts3HashFind(pHash, zName, nName); in fts3TokenizerFunc() 273 const char *zName; in testFunc() local 295 zName = (const char *)sqlite3_value_text(argv[0]); in testFunc() 355 char *zName, in registerTokenizer() argument 378 char *zName, in queryTokenizer() argument 480 const char *zName in sqlite3Fts3InitHashTable() argument [all …]
|
| /sqlite-3.40.0/tool/ |
| H A D | mkkeywordhash.c | 36 char *zName; /* The keyword name */ member 339 n = strcmp(pA->zName, pB->zName); in keywordCompare1() 349 n = strcmp(pA->zName, pB->zName); in keywordCompare2() 426 p->len = (int)strlen(p->zName); in main() 428 memcpy(p->zOrigName, p->zName, p->len+1); in main() 447 if( memcmp(p->zName, &pOther->zName[k], p->len)==0 ){ in main() 466 if( memcmp(&p->zName[p->len-k], pOther->zName, k)==0 ){ in main() 488 if( memcmp(&p->zName[p->len-k], pOther->zName, k)==0 ){ in main() 492 p->zName += k; in main() 547 memcpy(&zKWText[k], p->zName, p->len); in main() [all …]
|
| /sqlite-3.40.0/ext/fts3/unicode/ |
| H A D | parseunicode.tcl | 28 proc rd_load_unicodedata_text {zName} { argument 31 set fd [open $zName] 104 proc an_load_unicodedata_text {zName} { argument 105 set fd [open $zName] 146 proc tl_load_casefolding_txt {zName} { argument 149 set fd [open $zName] 169 proc cc_load_unicodedata_text {zName} { argument 170 set fd [open $zName]
|
| /sqlite-3.40.0/ext/rbu/ |
| H A D | test_rbu.c | 91 const char *zName; in test_sqlite3rbu_cmd() member 245 assert( !sqlite3_stricmp(aCmd[13].zName, "rename_handler") ); in test_sqlite3rbu_cmd() 344 const char *zName; in test_sqlite3rbu_create_vfs() local 353 zName = Tcl_GetString(objv[objc-2]); in test_sqlite3rbu_create_vfs() 357 rc = sqlite3rbu_create_vfs(zName, zParent); in test_sqlite3rbu_create_vfs() 362 sqlite3_vfs *pVfs = sqlite3_vfs_find(zName); in test_sqlite3rbu_create_vfs() 379 const char *zName; in test_sqlite3rbu_destroy_vfs() local 386 zName = Tcl_GetString(objv[1]); in test_sqlite3rbu_destroy_vfs() 387 sqlite3rbu_destroy_vfs(zName); in test_sqlite3rbu_destroy_vfs() 418 char *zName; in SqliteRbu_Init() member [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | cksumvfs.c | 231 static int cksmDelete(sqlite3_vfs*, const char *zName, int syncDir); 682 const char *zName, in cksmOpen() argument 693 return pSubVfs->xOpen(pSubVfs, zName, pFile, flags, pOutFlags); in cksmOpen() 699 rc = pSubVfs->xOpen(pSubVfs, zName, pSubFile, flags, pOutFlags); in cksmOpen() 702 sqlite3_file *pDb = sqlite3_database_file_object(zName); in cksmOpen() 714 p->zFName = zName; in cksmOpen() 781 const char *zName, in cksmSetSystemCall() argument 784 return ORIGVFS(pVfs)->xSetSystemCall(ORIGVFS(pVfs),zName,pCall); in cksmSetSystemCall() 788 const char *zName in cksmGetSystemCall() argument 790 return ORIGVFS(pVfs)->xGetSystemCall(ORIGVFS(pVfs),zName); in cksmGetSystemCall() [all …]
|
| /sqlite-3.40.0/ext/expert/ |
| H A D | sqlite3expert.c | 92 char *zName; member 748 pNew->aCol[nCol].zName = pCsr; in idxGetTableInfo() 772 pNew->zName = pCsr; in idxGetTableInfo() 773 if( ALWAYS(pNew->zName!=0) ) memcpy(pNew->zName, zTab, nTab+1); in idxGetTableInfo() 997 sqlite3_free(zName); in idxCreateFromCons() 999 if( zName==0 ) break; in idxCreateFromCons() 1017 }else if( zName==0 ){ in idxCreateFromCons() 1036 sqlite3_free(zName); in idxCreateFromCons() 1302 const char *zTab = pTab->zName; in idxProcessOneTrigger() 1346 pTab->aCol[i].zName in idxProcessOneTrigger() [all …]
|
| /sqlite-3.40.0/ext/fts5/ |
| H A D | fts5_storage.c | 190 pConfig->zDb, pConfig->zName, in sqlite3Fts5DropAll() 191 pConfig->zDb, pConfig->zName, in sqlite3Fts5DropAll() 192 pConfig->zDb, pConfig->zName in sqlite3Fts5DropAll() 197 pConfig->zDb, pConfig->zName in sqlite3Fts5DropAll() 203 pConfig->zDb, pConfig->zName in sqlite3Fts5DropAll() 218 pConfig->zDb, pConfig->zName, zTail, zName, zTail in fts5StorageRenameOne() 263 pConfig->zName, zPost, zErr in sqlite3Fts5CreateTable() 580 pConfig->zDb, pConfig->zName, in sqlite3Fts5StorageDeleteAll() 581 pConfig->zDb, pConfig->zName in sqlite3Fts5StorageDeleteAll() 586 pConfig->zDb, pConfig->zName in sqlite3Fts5StorageDeleteAll() [all …]
|