| /sqlite-3.40.0/test/ |
| H A D | speedtest1.c | 167 g.hash.s[j] = g.hash.s[i]; in HashUpdate() 188 g.hash.s[i] = g.hash.s[j]; in HashFinal() 191 g.hash.r[k] = g.hash.s[t]; in HashFinal() 287 g.x = (g.x>>1) ^ ((1+~(g.x&1)) & 0xd0000001); in speedtest1_random() 288 g.y = g.y*1103515245 + 12345; in speedtest1_random() 289 return g.x ^ g.y; in speedtest1_random() 612 if( g.nResult>0 ) g.zResult[g.nResult++] = ' '; in speedtest1_run() 744 isTemp(9), g.zNN, g.zNN, g.zNN); in testset_main() 763 isTemp(5), g.zNN, g.zPK, g.zNN, g.zNN, g.zWR); in testset_main() 782 isTemp(3), g.zNN, g.zPK, g.zNN, g.zNN, g.zWR); in testset_main() [all …]
|
| H A D | printf.test | 553 sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 1.0 580 sqlite3_mprintf_double {abc: (%*.*g) :xyz} 1 1 0.0 3667 sqlite3_mprintf_double {%d %d %!g} 1 1 1 3670 sqlite3_mprintf_double {%d %d %!g} 1 1 123 3673 sqlite3_mprintf_double {%d %d %!g} 1 1 12.3 3676 sqlite3_mprintf_double {%d %d %!g} 1 1 0.123 3679 sqlite3_mprintf_double {%d %d %!.15g} 1 1 1 3682 sqlite3_mprintf_double {%d %d %!.15g} 1 1 1e10 3685 sqlite3_mprintf_double {%d %d %!.15g} 1 1 1e300 3691 sqlite3_mprintf_double {%d %d %.2000g} 1 1 1.0 [all …]
|
| H A D | where7.test | 294 CREATE INDEX t2g ON t2(g); 299 CREATE INDEX t3d ON t3(d,g); 302 CREATE INDEX t3g ON t3(g,f); 4309 WHERE g IS NULL 4316 WHERE g IS NULL 7914 OR g IS NULL 7923 OR g IS NULL 13133 OR g IS NULL 13149 OR g IS NULL 22147 OR g IS NULL [all …]
|
| H A D | fuzzcheck.c | 159 } g; variable 173 if( g.zDbFile ) fprintf(stderr, " %s", g.zDbFile); in fatalError() 174 if( g.zTestName[0] ) fprintf(stderr, " (%s)", g.zTestName); in fatalError() 1527 memcpy(zBuf, &g.uRandom, nBuf<sizeof(g.uRandom) ? nBuf : sizeof(g.uRandom)); in inmemRandomness() 2219 &g.nSql, &g.pFirstSql); in main() 2222 &g.nDb, &g.pFirstDb); in main() 2228 g.nDb = 1; in main() 2339 int nTotal = g.nDb*g.nSql; in main() 2349 int amt = idx*10/(g.nDb*g.nSql); in main() 2443 int nTotal = g.nDb*g.nSql; in main() [all …]
|
| H A D | orderby2.test | 77 CREATE TABLE t34(g,h); CREATE INDEX t34gh ON t34(g,h); 84 SELECT a||','||c||','||e||','||g FROM t31, t32, t33, t34 85 WHERE c=b AND e=d AND g=f 86 ORDER BY a ASC, c ASC, e DESC, g ASC; 91 SELECT a||','||c||','||e||','||g FROM t31, t32, t33, t34 92 WHERE c=b AND e=d AND g=f 93 ORDER BY +a ASC, +c ASC, +e DESC, +g ASC; 99 WHERE c=b AND e=d AND g=f 100 ORDER BY a ASC, c ASC, e ASC, g ASC; 108 WHERE c=b AND e=d AND g=f [all …]
|
| H A D | dbfuzz.c | 104 } g; variable 113 g.aFile[i].sz = -1; in formatVfs() 115 g.aFile[i].a = 0; in formatVfs() 116 g.aFile[i].nRef = 0; in formatVfs() 132 if( g.aFile[i].nRef>0 ){ in reformatVfs() 135 g.aFile[i].sz = -1; in reformatVfs() 136 free(g.aFile[i].a); in reformatVfs() 137 g.aFile[i].a = 0; in reformatVfs() 138 g.aFile[i].nRef = 0; in reformatVfs() 150 if( strcmp(g.aFile[i].zFilename, zName)==0 ) return &g.aFile[i]; in findVFile() [all …]
|
| H A D | joinB.test | 62 SELECT a, c, d, e, f, g 85 SELECT a, c, d, e, f, g 138 SELECT b, c, d, e, f, g 160 SELECT a, c, d, e, f, g 184 SELECT a, c, d, e, f, g 239 SELECT b, c, d, e, f, g 262 SELECT a, c, d, e, f, g 289 SELECT a, c, d, e, f, g 346 SELECT b, c, d, e, f, g 369 SELECT a, c, d, e, f, g [all …]
|
| /sqlite-3.40.0/mptest/ |
| H A D | mptest.c | 90 } g; variable 227 if( g.pErrLog && safe_strcmp(g.zErrLog,g.zLog) ){ in errorMessage() 232 g.nError++; in errorMessage() 254 if( g.pErrLog && safe_strcmp(g.zErrLog,g.zLog) ){ in fatalError() 260 if( g.db ){ in fatalError() 564 if( g.nError || g.nTest ){ in startScript() 566 g.nError, g.nTest); in startScript() 644 g.argv0, g.zDbFile, iClient, g.iTrace); in startClient() 1325 g.pErrLog = fopen(g.zErrLog, "a"); in main() 1330 g.pLog = fopen(g.zLog, "a"); in main() [all …]
|
| /sqlite-3.40.0/ext/fts5/test/ |
| H A D | fts5phrase.test | 27 INSERT INTO t3 VALUES('g a e', 'f g i g a', 'h d g i g h c'); -- 2 29 INSERT INTO t3 VALUES('a g c', 'd j d j c', 'c d f j i g j'); -- 4 30 INSERT INTO t3 VALUES('b c b', 'j g c d f', 'j c j d g f b'); -- 5 32 INSERT INTO t3 VALUES('a d f', 'h g i i i', 'e a g c i f b'); -- 7 37 INSERT INTO t3 VALUES('a b e', 'h g a g c', 'h c a a d e g'); -- 12 38 INSERT INTO t3 VALUES('a j g', 'i h i f i', 'a g h j g i b'); -- 13 49 INSERT INTO t3 VALUES('d d g', 'c c b c g', 'g c h e b c e'); -- 24 53 INSERT INTO t3 VALUES('g a e', 'd g f a g', 'i d b c g g j'); -- 28 57 INSERT INTO t3 VALUES('a g c', 'c g d b i', 'g h c b a a f'); -- 32 61 INSERT INTO t3 VALUES('b g h', 'g c c c f', 'c g c f h e e'); -- 36 [all …]
|
| H A D | fts5ag.test | 44 {j s m y m r n l u k} {z k f u z g h s w g} {r n o s s b v n w w} 49 {k d g o u j p z n o} {t g e q l z i g b j} {f i q q j y h b g h} 55 {h d t o i a g b b p} {k x c i g f g b b k} {x f i v n a n n j i} 67 {q o e o x x l g q i} {j g m h q q w c d b} {o m d h w a g b f n} 71 {j g c d k w b d t v} {a k v c m a v h v p} {i c a i j g h l j h} 72 {l m v l c z j b p b} {z p z f l n k i b a} {j v q k g i x g i b} 74 {d g i o o x l f x d} {r t m f b n q y c b} {i u g k w x n m p o} 79 {z u v u x p s j y t} {g b q e e g l n w g} {e n p j i g j f u r} 81 {d t w n y b o g f o} {d a j e r l g g s h} {d z e l w q l t h f} 83 {b y f q s q f u l g} {u z w l f d b i a g} {m v q b g u o z e z} [all …]
|
| H A D | fts5ak.test | 30 INSERT INTO ft1 VALUES('i d d a g i b g d d'); 35 INSERT INTO ft1 VALUES('i a d e g j g d a a'); 49 {d c j d c j b c g [e]} 50 {i a d [e] g j g d a a} 52 {i c c f a d g h j [e]} 53 {g d a [e] h a b c f j} 60 {d c j d c j b c g [e]} 61 {i a d [e] g j g d a a} 63 {i c c f a d g h j [e]} 95 {i [d d] a g i b g [d d]} [all …]
|
| H A D | fts5auto.test | 32 {x c p f w r s m l r b f d} {g g u e} 41 {p i k j k q c t g u s} {g u y s m h q k g t e s o r} 80 {d i g q t f d r h k} {n w g j c x r p t y f l c t} 100 {i c x q w g v o x z i z p} {q o g k i n z x e d v w v} 108 {c h g c g j j f t b i c q} {s e} 109 {c t q j g f} {v n r w y r a g e j d} 127 {q g t h f s} {s g x p f q z i s o f l i} 149 {w r c f s x z y} {g f o k g g} 179 {m x g c w o e} {k g u y r y i u e g g} 201 {y q g n g s u v c z j z n g} {n n g t l p h} [all …]
|
| H A D | fts5ac.test | 32 4 {q m a i y i z} {o w a g k x g j m w e u k} 33 5 {k o a w y b s z} {s g l m m l m g p} 38 10 {k j q m g q a j d} {d d e z g w h c d o o g x d} 41 13 {u t h x e g s k n g i} {f j w g c s r} 43 15 {n a f n u s w h y n s i q e w} {x g e g a s s h n} 47 19 {f i r g o a w e p i l o a w} {e k r z t d g h g i b d i e m} 54 26 {g s q w t d k x g f m j p k y} {r m b x e l t d} 60 32 {w g v l z f b z h p s c v h} {g e w v m h k r g w a r f q} 66 38 {r w t t t t r v v o e p g h} {l w x a g a u h y} 67 39 {o p v g v b a g o} {j t q c r b b g y z} [all …]
|
| H A D | fts5fault6.test | 31 INSERT INTO tt VALUES('c d c g g f', 'a a a d g a'); 32 INSERT INTO tt VALUES('c d g b f d', 'b g e c g c'); 34 INSERT INTO tt VALUES('e a f c e f', 'g b a c d g'); 35 INSERT INTO tt VALUES('c g f b b d', 'g c d c f g'); 36 INSERT INTO tt VALUES('d a g a b b', 'g c g g c e'); 38 INSERT INTO tt VALUES('e c a g c d', 'b b g f f b'); 67 INSERT INTO tt VALUES('c d c g g f'); 68 INSERT INTO tt VALUES('c d g b f d'); 71 INSERT INTO tt VALUES('c g f b b d'); 72 INSERT INTO tt VALUES('d a g a b b'); [all …]
|
| H A D | fts5vocab.test | 121 INSERT INTO tt VALUES('f d c a c e', 'd g d e g d'); 122 INSERT INTO tt VALUES('g d e f a g x', 'f f d a a b'); 123 INSERT INTO tt VALUES('g c f b c g', 'a g f d c b'); 124 INSERT INTO tt VALUES('c e c f g b', 'f e d b g a'); 125 INSERT INTO tt VALUES('g d e f d e', 'a c d b a g'); 127 INSERT INTO tt VALUES('c c a a c f', 'd g a e b g'); 142 g a 5 7 g b 5 7 261 INSERT INTO tx VALUES('g a ggg g a b eee', 'cc d aa ff g ee'); 272 INSERT INTO tx VALUES('g d b ggg jj', 'fff jj ff jj g gg ee'); 294 g gg ggg [all …]
|
| /sqlite-3.40.0/tool/ |
| H A D | showdb.c | 102 if( g.bRaw==0 ){ in fileOpen() 126 if( g.bRaw==0 ){ in fileClose() 128 g.pDb = 0; in fileClose() 129 g.pFd = 0; in fileClose() 132 g.dbfd = -1; in fileClose() 168 int rc = g.pFd->pMethods->xFileSize(g.pFd, &res); in fileGetsize() 748 a = fileRead((pgno-1)*g.pagesize, g.pagesize); in decode_trunk_page() 876 a = fileRead((pgno-1)*g.pagesize, g.pagesize); in page_usage_btree() 959 a = fileRead((pgno-1)*g.pagesize, g.pagesize); in page_usage_freelist() 1151 if( g.pagesize==0 ) g.pagesize = 1024; in main() [all …]
|
| H A D | fuzzershell.c | 85 } g; variable 105 if( nByte>0 && g.bOomEnable && g.iOomCntdown>0 ){ in oomMalloc() 106 g.iOomCntdown--; in oomMalloc() 109 g.nOomFault++; in oomMalloc() 110 if( !g.bOomOnce ) g.iOomCntdown = 1; in oomMalloc() 117 if( nByte>0 && g.bOomEnable && g.iOomCntdown>0 ){ in oomRealloc() 118 g.iOomCntdown--; in oomRealloc() 122 if( !g.bOomOnce ) g.iOomCntdown = 1; in oomRealloc() 136 fprintf(stderr, "%s (%s): ", g.zArgv0, g.zTestName); in abendError() 153 fprintf(stderr, "%s (%s): ", g.zArgv0, g.zTestName); in fatalError() [all …]
|
| H A D | dbhash.c | 46 } g; variable 160 g.cx.state[0] = 0x67452301; in hash_init() 161 g.cx.state[1] = 0xEFCDAB89; in hash_init() 162 g.cx.state[2] = 0x98BADCFE; in hash_init() 165 g.cx.count[0] = g.cx.count[1] = 0; in hash_init() 172 j = g.cx.count[0]; in hash_step() 179 SHA1Transform(g.cx.state, g.cx.buffer); in hash_step() 390 g.zArgv0 = argv[0]; in main() 445 sqlite3_close(g.db); in main() 446 g.db = 0; in main() [all …]
|
| H A D | offsets.c | 299 GState g; in main() local 300 memset(&g, 0, sizeof(g)); in main() 302 g.bTrace = 1; in main() 311 if( g.zErr ){ in main() 315 ofstTrace(&g, "# szPg = %d\n", g.szPg); in main() 316 ofstTrace(&g, "# iRoot = %d\n", g.iRoot); in main() 317 ofstTrace(&g, "# iCol = %d\n", g.iCol); in main() 318 g.f = fopen(argv[1], "rb"); in main() 319 if( g.f==0 ){ in main() 323 ofstWalkPage(&g, g.iRoot); in main() [all …]
|
| H A D | sqldiff.c | 40 } g; variable 253 if( g.bSchemaPK==0 ){ in columnNames() 306 if( g.bSchemaCompare ){ in columnNames() 318 if( g.bSchemaCompare ){ in columnNames() 463 if( !g.bSchemaOnly ){ in dump_table() 705 if( !g.bSchemaOnly ){ in diff_one_table() 1272 g.bSchemaPK = 1; in rbudiff_one_table() 1852 if( g.bHandleVtab ){ in all_tables_sql() 1947 g.zArgv0 = argv[0]; in main() 2016 if( g.bSchemaOnly && g.bSchemaCompare ){ in main() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | test_mutex.c | 54 } g = {0}; variable 73 if( g.disableInit ) return g.disableInit; in counterMutexInit() 75 g.isInit = 1; in counterMutexInit() 83 g.isInit = 0; in counterMutexEnd() 94 assert( g.isInit ); in counterMutexAlloc() 119 assert( g.isInit ); in counterMutexFree() 130 assert( g.isInit ); in counterMutexEnter() 141 assert( g.isInit ); in counterMutexTry() 152 assert( g.isInit ); in counterMutexLeave() 231 assert(g.isInstalled==0 || g.isInstalled==1); in test_install_mutex_counters() [all …]
|
| H A D | test_devsym.c | 179 return g.iSectorSize; in devsymSectorSize() 186 return g.iDeviceChar; in devsymDeviceCharacteristics() 345 return g.pVfs->xCurrentTime(g.pVfs, pTimeOut); in devsymCurrentTime() 374 if( g.nWriteCrash>0 ){ in writecrashWrite() 375 g.nWriteCrash--; in writecrashWrite() 487 if( g.pVfs==0 ){ in devsym_register() 497 g.iDeviceChar = 0; in devsym_register() 509 g.pVfs = 0; in devsym_unregister() 510 g.iDeviceChar = 0; in devsym_unregister() 511 g.iSectorSize = 0; in devsym_unregister() [all …]
|
| H A D | test_server.c | 259 } g = { variable 282 if( g.pQueueHead==0 ){ in sendToServer() 283 g.pQueueTail = pMsg; in sendToServer() 288 g.pQueueHead = pMsg; in sendToServer() 398 while( !g.serverHalt ){ in sqlite3_server() 404 while( g.pQueueTail==0 && g.serverHalt==0 ){ in sqlite3_server() 405 pthread_cond_wait(&g.serverWakeup, &g.queueMutex); in sqlite3_server() 407 pMsg = g.pQueueTail; in sqlite3_server() 468 g.serverHalt = 0; in sqlite3_server_start() 494 g.serverHalt = 0; in sqlite3_server_start2() [all …]
|
| H A D | test_journal.c | 720 p->pNext = g.pList; in jtOpen() 721 g.pList = p; in jtOpen() 777 return g.pVfs->xDlOpen(g.pVfs, zPath); in jtDlOpen() 786 g.pVfs->xDlError(g.pVfs, nByte, zErrMsg); in jtDlError() 793 return g.pVfs->xDlSym(g.pVfs, p, zSym); in jtDlSym() 800 g.pVfs->xDlClose(g.pVfs, pHandle); in jtDlClose() 823 return g.pVfs->xCurrentTime(g.pVfs, pTimeOut); in jtCurrentTime() 829 return g.pVfs->xCurrentTimeInt64(g.pVfs, pTimeOut); in jtCurrentTimeInt64() 833 return g.pVfs->xGetLastError(g.pVfs, n, z); in jtGetLastError() 849 if( g.pVfs==0 ){ in jt_register() [all …]
|
| H A D | test6.c | 227 ppPtr = &g.pWriteList; in writeListSync() 330 pWrite->pFile, zGarbage, g.iSectorSize, i*g.iSectorSize in writeListSync() 354 g.pWriteListEnd = pWrite; in writeListSync() 385 if( g.pWriteList ){ in writeListAppend() 386 assert(g.pWriteListEnd); in writeListAppend() 387 g.pWriteListEnd->pNext = pNew; in writeListAppend() 389 g.pWriteList = pNew; in writeListAppend() 391 g.pWriteListEnd = pNew; in writeListAppend() 543 return g.iSectorSize; in cfSectorSize() 955 g.iSectorSize = iSectorSize; in crashParamsObjCmd() [all …]
|