Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 109) sorted by relevance

12345

/sqlite-3.40.0/tool/
H A Dmkopcodeh.tcl167 set cnt -1
171 incr cnt
172 while {[info exists used($cnt)]} {incr cnt}
174 set used($cnt) 1
178 set mxCase1 $cnt
186 incr cnt
187 while {[info exists used($cnt)]} {incr cnt}
189 set used($cnt) 1
209 set seek $cnt
239 incr cnt
[all …]
H A Dshowlocks.c25 int cnt = 0; in showLocksInRange() local
57 cnt++; in showLocksInRange()
79 return cnt; in showLocksInRange()
84 int cnt; in main() local
95 cnt = showLocksInRange(fd, 0, MX_LCK); in main()
96 if( cnt==0 ) printf("no locks\n"); in main()
H A Dcg_anno.tcl70 foreach {fn cnt} [array get fcycles] {
71 lappend lx [list $cnt $fn]
72 incr sum $cnt
76 foreach {cnt fn} $entry break
77 puts [format {%20s %14d %8.3f%%} $fn $cnt [expr {$cnt*100.0/$sum}]]
H A Dshowjournal.c108 int nPage, cnt; in main() local
125 cnt = nPage = (int)decode_journal_header(iOfst); in main()
126 if( cnt==0 ){ in main()
127 cnt = (fileSize - sectorSize)/(pageSize+8); in main()
130 while( cnt && iOfst<fileSize ){ in main()
H A Dvdbe_profile.tcl25 if {[info exists cnt($stmt)]} {
26 incr cnt($stmt)
29 set cnt($stmt) 1
68 puts "Execution count: $cnt($stmt)"
/sqlite-3.40.0/test/
H A Dfts3aux1.test117 set cnt 0
119 set cnt
124 set cnt
133 set cnt
138 set cnt
179 set cnt
184 set cnt
247 set cnt
252 set cnt
287 set cnt
[all …]
H A Dwith3.test81 WITH cnt(i) AS ( SELECT 1 UNION ALL SELECT i+1 FROM cnt LIMIT 1000)
82 INSERT INTO y1 SELECT i%10, i FROM cnt;
88 WITH cnt(i) AS ( SELECT 1 UNION ALL SELECT i+1 FROM cnt LIMIT 1)
89 SELECT * FROM cnt, y1 WHERE i=a
92 |--MATERIALIZE cnt
96 | `--SCAN cnt
97 |--SCAN cnt
102 WITH cnt(i) AS ( SELECT 1 UNION ALL SELECT i+1 FROM cnt LIMIT 1000000)
103 SELECT * FROM cnt, y1 WHERE i=a
106 |--MATERIALIZE cnt
[all …]
H A Datrc.c41 int cnt = 0; in rename_all_columns_of_table() local
50 cnt++; in rename_all_columns_of_table()
53 zTab, zCol, zColPrefix, cnt in rename_all_columns_of_table()
58 zTab, zColPrefix, cnt, zCol in rename_all_columns_of_table()
75 int cnt = 0; in rename_all_tables() local
87 zPrefix[0] = (cnt%26) + 'a'; in rename_all_tables()
89 zNewTab = sqlite3_mprintf("tx%d", ++cnt); in rename_all_tables()
H A Djrnlmode3.test77 set cnt 0
83 incr cnt
93 do_test jrnlmode3-3.$cnt.1-($fromjmode-to-$tojmode) {
99 do_test jrnlmode3-3.$cnt.2 {
106 do_test jrnlmode3-3.$cnt.3 {
110 INSERT INTO t1 VALUES($cnt);
117 do_test jrnlmode3-3.$cnt.4 {
127 do_test jrnlmode3-3.$cnt.5 {
134 do_test jrnlmode3-3.$cnt.6 {
H A Dwalvfs.test129 set ::cnt 2
132 incr ::cnt -1
133 if {$::cnt==0} {
144 set ::cnt 2
147 incr ::cnt -1
148 if {$::cnt==0} {
195 set ::cnt 5
202 incr ::cnt -1
254 set ::cnt 20
256 incr ::cnt -1
[all …]
H A Dselect6.test576 SELECT cnt, xyz, (SELECT y FROM t2 WHERE w=cnt), '|'
578 ORDER BY cnt, xyz;
581 SELECT cnt, xyz, lower((SELECT y FROM t2 WHERE w=cnt)), '|'
583 ORDER BY cnt, xyz;
586 SELECT cnt, xyz, '|'
589 ORDER BY cnt, xyz;
592 SELECT cnt, xyz, '|'
597 SELECT cnt, xyz,
602 ORDER BY +cnt;
610 SELECT ( SELECT y FROM t2 WHERE z = cnt )
[all …]
H A Dbtree02.test27 CREATE TABLE t3(cnt);
29 INSERT INTO t3(cnt) SELECT i FROM c;
42 db eval {SELECT a, ax, b, cnt FROM t1 CROSS JOIN t3 WHERE b IS NOT NULL} {
44 db eval {INSERT INTO t2(x,y) VALUES($b,$cnt)}
45 # puts "a,b,cnt = ($a,$b,$cnt)"
H A Dcrash4.test64 for {set cnt 1; set fin 0} {!$fin} {incr cnt} {
67 do_test crash4-1.$cnt.1 {
69 set delay [expr {int($cnt/50)+1}]
70 set file [expr {($cnt&1)?"test.db":"test.db-journal"}]
95 integrity_check crash4-1.$cnt.2
96 do_test crash4-1.$cnt.3 {
H A Dthreadtest2.c78 int cnt = 0; in worker() local
80 while( !all_stop && cnt++<10000 ){ in worker()
81 if( cnt%100==0 ) printf("%d: %d\n", id, cnt); in worker()
H A Dindexexpr2.test165 unset -nocomplain cnt
166 set cnt 0
168 global cnt
169 incr cnt
180 set ::cnt
184 set ::cnt
188 set ::cnt 0
190 set ::cnt
195 set ::cnt 0
197 set ::cnt
H A Dwaloverwrite.test61 WITH cnt(i) AS (
62 SELECT 1 UNION ALL SELECT i+1 FROM cnt WHERE i<20
64 INSERT INTO t1 SELECT i, randomblob(800) FROM cnt;
124 WITH cnt(i) AS (SELECT 1 UNION ALL SELECT i+1 FROM cnt WHERE i<20)
125 INSERT INTO t2 SELECT i, randomblob(800) FROM cnt;
H A Dwithout_rowid5.test51 # KEY, cnt INTEGER ) WITHOUT ROWID;
56 cnt INTEGER
71 cnt INTEGER
81 cnt INTEGER
91 cnt INTEGER
105 cnt INTEGER
111 cnt INTEGER
127 cnt INTEGER
H A Dinsert2.test36 CREATE TABLE t1(log int, cnt int);
59 CREATE TABLE t1(log int, cnt int);
73 CREATE TABLE t1(log int, cnt int);
91 CREATE TABLE t1(log int, cnt int);
93 CREATE INDEX i2 ON t1(cnt);
97 lappend r [execsql {SELECT cnt FROM t1 WHERE log=3}]
98 lappend r [execsql {SELECT log FROM t1 WHERE cnt=4 ORDER BY log}]
H A Dcrashtest1.c31 int cnt = 0; in do_some_sql() local
52 cnt++; in do_some_sql()
63 printf("pid %d: cnt=%d\n", getpid(), cnt); in do_some_sql()
/sqlite-3.40.0/ext/misc/
H A Dfossildelta.c423 cnt = j+k+1; in delta_create()
428 if( cnt>=sz && cnt>bestCnt ){ in delta_create()
431 bestCnt = cnt; in delta_create()
557 unsigned int cnt, ofst; in delta_apply() local
568 total += cnt; in delta_apply()
578 zOut += cnt; in delta_apply()
583 total += cnt; in delta_apply()
588 if( cnt>lenDelta ){ in delta_apply()
593 zOut += cnt; in delta_apply()
594 zDelta += cnt; in delta_apply()
[all …]
/sqlite-3.40.0/src/
H A Dmutex_noop.c82 int cnt; /* Number of entries without a matching leave */ member
91 return p==0 || p->cnt>0; in debugMutexHeld()
95 return p==0 || p->cnt==0; in debugMutexNotheld()
118 pNew->cnt = 0; in debugMutexAlloc()
142 assert( p->cnt==0 ); in debugMutexFree()
166 p->cnt++; in debugMutexEnter()
171 p->cnt++; in debugMutexTry()
184 p->cnt--; in debugMutexLeave()
H A Dresolve.c346 cnt++; in lookupName()
402 cnt++; in lookupName()
486 cnt++; in lookupName()
537 if( cnt==0 in lookupName()
544 cnt = 1; in lookupName()
567 if( cnt==0 in lookupName()
598 cnt = 1; in lookupName()
612 if( cnt ) break; in lookupName()
670 if( cnt!=1 ){ in lookupName()
686 cnt = 1; in lookupName()
[all …]
/sqlite-3.40.0/ext/session/
H A Dchangeset.c252 int cnt = 0; in main() local
265 cnt++; in main()
267 cnt, op==SQLITE_INSERT ? "INSERT" : in main()
321 int cnt = 0; in main() local
335 cnt++; in main()
353 printf("/* %d */ DELETE FROM %s WHERE", cnt, zSQLTabName); in main()
370 printf("/* %d */ UPDATE %s SET", cnt, zSQLTabName); in main()
395 printf("/* %d */ INSERT INTO %s VALUES", cnt, zSQLTabName); in main()
/sqlite-3.40.0/ext/rbu/
H A Drbuprogress.test35 CREATE TABLE rbu_count(tbl, cnt);
135 CREATE TABLE rbu_count(tbl, cnt);
163 CREATE TABLE rbu_count(tbl, cnt);
182 CREATE TABLE rbu_count(tbl, cnt);
201 CREATE TABLE rbu_count(tbl, cnt);
286 CREATE TABLE rbu_count(tbl, cnt);
309 CREATE TABLE rbu_count(tbl, cnt);
318 CREATE TABLE rbu_count(tbl, cnt);
328 CREATE TABLE rbu_count(tbl, cnt);
373 CREATE TABLE rbu_count(tbl, cnt);
[all …]
/sqlite-3.40.0/ext/icu/
H A Dicu.c366 int cnt; in icuCaseFunc16() local
387 for(cnt=0; cnt<2; cnt++){ in icuCaseFunc16()
405 assert( cnt==0 ); in icuCaseFunc16()

12345