Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 25 of 35) sorted by relevance

12

/sqlite-3.40.0/test/
H A De_resolve.test31 CREATE TABLE main.n2(x, y); INSERT INTO main.n2 VALUES('main', 'n2');
32 CREATE INDEX main.n3 ON n2(y, x);
33 CREATE TRIGGER main.n4 BEFORE INSERT ON n2 BEGIN SELECT 1; END;
36 CREATE TABLE at1.n2(x, y); INSERT INTO at1.n2 VALUES('at1', 'n2');
40 CREATE TABLE at2.n2(x, y); INSERT INTO at2.n2 VALUES('at2', 'n2');
64 do_execsql_test 1.2 { SELECT * FROM n2 } {main n2}
94 do_catchsql_test 4.1 { SELECT * FROM temp.n2 } {1 {no such table: temp.n2}}
95 do_catchsql_test 4.2 { SELECT * FROM main.n2 } {0 {main n2}}
96 do_catchsql_test 4.3 { SELECT * FROM at1.n2 } {0 {at1 n2}}
97 do_catchsql_test 4.4 { SELECT * FROM at2.n2 } {0 {at2 n2}}
H A Dlaststmtchanges.test222 create temp table n2 (k integer primary key, n);
242 insert into n2 values (NULL, changes());
244 insert into n2 values (NULL, changes());
246 insert into n2 values (NULL, changes());
248 insert into n2 values (NULL, changes());
277 select n from n2;
H A Dtpch01.test141 n2.n_name as nation
149 nation n2,
159 and s_nationkey = n2.n_nationkey
174 } {/.* supplier .* n2 .*/}
H A Dupfrom3.test166 CREATE TABLE map2(o1, o2, n1, n2);
170 UPDATE u1 SET b=n1, c=n2 FROM map2 WHERE b=o1 AND c=o2;
H A Dtclsqlite.test804 set n2 [string range $nm 1 end]
805 if {[info exists bindings($n2)]} {
806 return $bindings($n2)
808 if {[string match e* $n2]} {
H A Djson103.test56 } {0 {{"n3":3,"n6":6}} 1 {{"n1":1,"n4":4}} 2 {{"n2":2,"n5":5}}}
H A Dfts4langid.test180 set n2 [llength $list2]
182 while {$i1 < $n1 && $i2 < $n2} {
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest7.c137 int n2 = nBlksz; in newLsmConnection() local
141 if( n2 ) lsm_config(db, LSM_CONFIG_BLOCK_SIZE, &n2); in newLsmConnection()
151 int n2 = 0; in testPagesize() local
154 lsm_config(db, LSM_CONFIG_BLOCK_SIZE, &n2); in testPagesize()
157 testCompareInt(n2, nBlksz, pRc); in testPagesize()
H A Dlsmtest_tdb.c151 const char *v; size_t n2; in test_leveldb_scan() local
166 v = leveldb_iter_value(iter, &n2); in test_leveldb_scan()
168 xCallback(pCtx, (void *)k, n, (void *)v, n2); in test_leveldb_scan()
/sqlite-3.40.0/ext/fts1/
H A Dft_hash.c89 static int intCompare(const void *pKey1, int n1, const void *pKey2, int n2){
90 return n2 - n1;
102 static int ptrCompare(const void *pKey1, int n1, const void *pKey2, int n2){
122 static int strCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in strCompare() argument
123 if( n1!=n2 ) return 1; in strCompare()
138 static int binCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in binCompare() argument
139 if( n1!=n2 ) return 1; in binCompare()
H A Dfts1_hash.c102 static int strCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in strCompare() argument
103 if( n1!=n2 ) return 1; in strCompare()
118 static int binCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in binCompare() argument
119 if( n1!=n2 ) return 1; in binCompare()
/sqlite-3.40.0/src/
H A Dtest3.c440 int n1, n2, i, j; in btree_varint_test() local
462 n2 = getVarint(zBuf, &out); in btree_varint_test()
463 if( n1!=n2 ){ in btree_varint_test()
465 "putVarint returned %d and getVarint returned %d", n1, n2); in btree_varint_test()
477 n2 = getVarint32(zBuf, out32); in btree_varint_test()
479 if( n1!=n2 ){ in btree_varint_test()
482 n1, n2); in btree_varint_test()
H A Dvdbesort.c815 int n2; in vdbeSorterCompareText() local
819 getVarint32NR(&p2[1], n2); in vdbeSorterCompareText()
820 res = memcmp(v1, v2, (MIN(n1, n2) - 13)/2); in vdbeSorterCompareText()
822 res = n1 - n2; in vdbeSorterCompareText()
H A Dvdbeaux.c4312 int n2 = pB2->n; in sqlite3BlobCompare() local
4319 assert( (pB2->flags & MEM_Zero)==0 || n2==0 ); in sqlite3BlobCompare()
4326 return pB1->u.nZero - n2; in sqlite3BlobCompare()
4332 c = memcmp(pB1->z, pB2->z, n1>n2 ? n2 : n1); in sqlite3BlobCompare()
4334 return n1 - n2; in sqlite3BlobCompare()
H A Dshell.c.in8186 int n2, i; local
8222 n2 = strlen30(zCmd);
8816 int i, n2; local
8829 n2 = strlen30(azArg[1]);
8901 int i, n2; local
8958 n2 = strlen30(zMode);
8959 if( cli_strncmp(zMode,"lines",n2)==0 ){
10313 int n2 = nAlloc*2 + 10; local
10316 nAlloc = n2;
10404 int i, n2; local
[all …]
/sqlite-3.40.0/ext/misc/
H A Dspellfix.c869 if( b1>n2 ) return 0; in matchFromTo()
1011 n = (f.n+1)*(n2+1); in editDist3Core()
1022 memset(a2, 0, sizeof(a2[0])*n2); in editDist3Core()
1025 for(i2=0; i2<n2; i2++){ in editDist3Core()
1030 if( i2+p->nTo>n2 ) continue; in editDist3Core()
1060 for(i2=0; i2<n2; i2 += b2){ in editDist3Core()
1093 if( matchTo(p, z2+i2, n2-i2) ){ in editDist3Core()
1110 for(i2=0; i2<n2; i2++){ in editDist3Core()
1122 res = (int)m[szRow*(n2+1)-1]; in editDist3Core()
1123 n = n2; in editDist3Core()
[all …]
H A Dsha1.c350 int n2 = sqlite3_column_bytes(pStmt, i); in sha1QueryFunc() local
352 hash_step_vformat(&cx,"T%d:",n2); in sha1QueryFunc()
353 hash_step(&cx, z2, n2); in sha1QueryFunc()
357 int n2 = sqlite3_column_bytes(pStmt, i); in sha1QueryFunc() local
359 hash_step_vformat(&cx,"B%d:",n2); in sha1QueryFunc()
360 hash_step(&cx, z2, n2); in sha1QueryFunc()
H A Dshathree.c672 int n2 = sqlite3_column_bytes(pStmt, i); in sha3QueryFunc() local
674 hash_step_vformat(&cx,"T%d:",n2); in sha3QueryFunc()
675 SHA3Update(&cx, z2, n2); in sha3QueryFunc()
679 int n2 = sqlite3_column_bytes(pStmt, i); in sha3QueryFunc() local
681 hash_step_vformat(&cx,"B%d:",n2); in sha3QueryFunc()
682 SHA3Update(&cx, z2, n2); in sha3QueryFunc()
/sqlite-3.40.0/tool/
H A Dsqldiff.c530 int n2; /* Number of columns in aux */ in diff_one_table() local
598 for(n2=n; az2[n2]; n2++){ in diff_one_table()
599 fprintf(out, "ALTER TABLE %s ADD COLUMN %s;\n", zId, safeId(az2[n2])); in diff_one_table()
601 nQ = nPk2+1+2*(n2-nPk2); in diff_one_table()
602 if( n2>nPk2 ){ in diff_one_table()
647 strPrintf(&sql, " NULL, NULL%s\n", i==n2-1 ? "" : ","); in diff_one_table()
1397 int n2; /* Number of columns in aux */ in summarize_one_table() local
1440 for(n2=n; az[n2]; n2++){} in summarize_one_table()
1442 if( n2==nPk2 ){ in summarize_one_table()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_hash.c107 static int fts3StrCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in fts3StrCompare() argument
108 if( n1!=n2 ) return 1; in fts3StrCompare()
123 static int fts3BinCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in fts3BinCompare() argument
124 if( n1!=n2 ) return 1; in fts3BinCompare()
/sqlite-3.40.0/ext/fts2/
H A Dfts2_hash.c109 static int strCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in strCompare() argument
110 if( n1!=n2 ) return 1; in strCompare()
125 static int binCompare(const void *pKey1, int n1, const void *pKey2, int n2){ in binCompare() argument
126 if( n1!=n2 ) return 1; in binCompare()
/sqlite-3.40.0/ext/session/
H A Dsqlite3session.c667 a2 += n2; in sessionChangeEqual()
705 memcpy(aOut, a2, n2); in sessionMergeRecord()
706 aOut += n2; in sessionMergeRecord()
712 a2 += n2; in sessionMergeRecord()
750 *pnVal = n2; in sessionMergeValue()
753 *paTwo = &a2[n2]; in sessionMergeValue()
5018 pOut += n2; in sessionChangeMerge()
5021 a2 += n2; in sessionChangeMerge()
5529 pOut += n2; in sessionAppendPartialUpdate()
5534 a2 += n2; in sessionAppendPartialUpdate()
[all …]
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_main.c56 static int xCmp(void *p1, int n1, void *p2, int n2){ in xCmp() argument
58 res = memcmp(p1, p2, LSM_MIN(n1, n2)); in xCmp()
59 if( res==0 ) res = (n1-n2); in xCmp()
H A Dlsm_sorted.c3411 u8 *a2; int n2; in mergeWorkerMoveHierarchy() local
3414 a2 = fsPageData(apHier[i], &n2); in mergeWorkerMoveHierarchy()
3416 assert( n1==n2 || n1+4==n2 ); in mergeWorkerMoveHierarchy()
3418 if( n1==n2 ){ in mergeWorkerMoveHierarchy()
3419 memcpy(a1, a2, n2); in mergeWorkerMoveHierarchy()
3421 int nEntry = pageGetNRec(a2, n2); in mergeWorkerMoveHierarchy()
3423 int iEof2 = SEGMENT_EOF(n2, nEntry); in mergeWorkerMoveHierarchy()
3433 assert( n1==n2 || n1+4==n2 || n2+4==n1 ); in mergeWorkerMoveHierarchy()
3434 if( n1>=n2 ){ in mergeWorkerMoveHierarchy()
3440 int nEntry = pageGetNRec(a2, n2); in mergeWorkerMoveHierarchy()
[all …]
/sqlite-3.40.0/ext/rbu/
H A Drbuvacuum.test347 set n2 [string length $y]
348 return [expr $n1 - $n2]

12