OpenCoverage

vdbeapi.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/sqlite/src/src/vdbeapi.c
Switch to Source codePreprocessed file
LineSourceCount
1int sqlite3_expired(sqlite3_stmt *pStmt){-
2 Vdbe *p = (Vdbe*)pStmt;-
3 return
executed 16 times by 1 test: return p==0 || p->expired;
Executed by:
  • Self test (438)
p==0
p==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 15 times by 1 test
Evaluated by:
  • Self test (438)
|| p->expired
p->expiredDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
;
executed 16 times by 1 test: return p==0 || p->expired;
Executed by:
  • Self test (438)
1-16
4}-
5-
6-
7-
8-
9-
10-
11-
12static int vdbeSafety(Vdbe *p){-
13 if( p->db==0
p->db==0Description
TRUEnever evaluated
FALSEevaluated 4812455 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
0-4812455
14 sqlite3_log(21, "API called with finalized prepared statement");-
15 return
never executed: return 1;
1;
never executed: return 1;
0
16 }else{-
17 return
executed 4812455 times by 436 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
0;
executed 4812455 times by 436 tests: return 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
4812455
18 }-
19}-
20static int vdbeSafetyNotNull(Vdbe *p){-
21 if( p==0
p==0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4435671 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
2-4435671
22 sqlite3_log(21, "API called with NULL prepared statement");-
23 return
executed 2 times by 1 test: return 1;
Executed by:
  • Self test (438)
1;
executed 2 times by 1 test: return 1;
Executed by:
  • Self test (438)
2
24 }else{-
25 return
executed 4435671 times by 435 tests: return vdbeSafety(p);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
vdbeSafety(p);
executed 4435671 times by 435 tests: return vdbeSafety(p);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
4435671
26 }-
27}-
28-
29-
30-
31-
32-
33-
34static __attribute__((noinline)) void invokeProfileCallback(sqlite3 *db, Vdbe *p){-
35 sqlite3_int64 iNow;-
36 sqlite3_int64 iElapse;-
37 -
38 ((void) (0))-
39 ;-
40 -
41 ((void) (0))-
42 ;-
43 -
44 ((void) (0))-
45 ;-
46 -
47 ((void) (0))-
48 ;-
49 sqlite3OsCurrentTimeInt64(db->pVfs, &iNow);-
50 iElapse = (iNow - p->startTime)*1000000;-
51 if( db->xProfile
db->xProfileDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
){
6
52 db->xProfile(db->pProfileArg, p->zSql, iElapse);-
53 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
54 if( db->mTrace & 0x02
db->mTrace & 0x02Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
){
6
55 db->xTrace(0x02, db->pTraceArg, p, (void*)&iElapse);-
56 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
57 p->startTime = 0;-
58}
executed 12 times by 1 test: end of block
Executed by:
  • Self test (438)
12
59int sqlite3_finalize(sqlite3_stmt *pStmt){-
60 int rc;-
61 if( pStmt==0
pStmt==0Description
TRUEevaluated 30627 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 376784 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
30627-376784
62-
63-
64 rc = 0;-
65 }
executed 30627 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
30627
66 Vdbe *v = (Vdbe*)pStmt;-
67 sqlite3 *db = v->db;-
68 if( vdbeSafety(v)
vdbeSafety(v)Description
TRUEnever evaluated
FALSEevaluated 376784 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) return
never executed: return sqlite3MisuseError(106);
sqlite3MisuseError(106);
never executed: return sqlite3MisuseError(106);
0-376784
69 sqlite3_mutex_enter(db->mutex);-
70 if( ((
((v)->startTime)>0Description
TRUEnever evaluated
FALSEevaluated 376784 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
v)->startTime)>0
((v)->startTime)>0Description
TRUEnever evaluated
FALSEevaluated 376784 times by 436 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){ invokeProfileCallback(db,v); }
never executed: end of block
;
0-376784
71 rc = sqlite3VdbeFinalize(v);-
72 rc = sqlite3ApiExit(db, rc);-
73 sqlite3LeaveMutexAndCloseZombie(db);-
74 }
executed 376784 times by 436 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
376784
75 return
executed 407411 times by 436 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
rc;
executed 407411 times by 436 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
407411
76}-
77int sqlite3_reset(sqlite3_stmt *pStmt){-
78 int rc;-
79 if( pStmt==0
pStmt==0Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1043003 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
){
24-1043003
80 rc = 0;-
81 }
executed 24 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
24
82 Vdbe *v = (Vdbe*)pStmt;-
83 sqlite3 *db = v->db;-
84 sqlite3_mutex_enter(db->mutex);-
85 if( ((
((v)->startTime)>0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1043001 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
v)->startTime)>0
((v)->startTime)>0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1043001 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
){ invokeProfileCallback(db,v); }
executed 2 times by 1 test: end of block
Executed by:
  • Self test (438)
;
2-1043001
86 rc = sqlite3VdbeReset(v);-
87 sqlite3VdbeRewind(v);-
88 -
89 ((void) (0))-
90 ;-
91 rc = sqlite3ApiExit(db, rc);-
92 sqlite3_mutex_leave(db->mutex);-
93 }
executed 1043003 times by 104 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
1043003
94 return
executed 1043027 times by 104 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
rc;
executed 1043027 times by 104 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
1043027
95}-
96-
97-
98-
99-
100int sqlite3_clear_bindings(sqlite3_stmt *pStmt){-
101 int i;-
102 int rc = 0;-
103 Vdbe *p = (Vdbe*)pStmt;-
104-
105 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;-
106-
107 sqlite3_mutex_enter(mutex);-
108 for(i=0; i<p->nVar
i<p->nVarDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
; i++){
3-7
109 sqlite3VdbeMemRelease(&p->aVar[i]);-
110 p->aVar[i].flags = 0x0001;-
111 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test (438)
7
112 -
113 ((void) (0))-
114 ;-
115 if( p->expmask
p->expmaskDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
){
0-3
116 p->expired = 1;-
117 }
never executed: end of block
0
118 sqlite3_mutex_leave(mutex);-
119 return
executed 3 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 3 times by 1 test: return rc;
Executed by:
  • Self test (438)
3
120}-
121-
122-
123-
124-
125-
126-
127const void *sqlite3_value_blob(sqlite3_value *pVal){-
128 Mem *p = (Mem*)pVal;-
129 if( p->flags & (0x0010|0x0002)
p->flags & (0x0010|0x0002)Description
TRUEevaluated 384985 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
){
3-384985
130 if( (((
((p)->flags&0x4000)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 384980 times by 1 test
Evaluated by:
  • Self test (438)
(((p)->flags&0...dBlob(p):0)!=0Description
TRUEnever evaluated
FALSEevaluated 384985 times by 1 test
Evaluated by:
  • Self test (438)
((p)->flags&0x4000)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 384980 times by 1 test
Evaluated by:
  • Self test (438)
p)->flags&0x4000)
(((p)->flags&0...dBlob(p):0)!=0Description
TRUEnever evaluated
FALSEevaluated 384985 times by 1 test
Evaluated by:
  • Self test (438)
((p)->flags&0x4000)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 384980 times by 1 test
Evaluated by:
  • Self test (438)
?sqlite3VdbeMemExpandBlob(p):0)!=0
(((p)->flags&0...dBlob(p):0)!=0Description
TRUEnever evaluated
FALSEevaluated 384985 times by 1 test
Evaluated by:
  • Self test (438)
){
0-384985
131 -
132 ((void) (0))-
133 ;-
134 return
never executed: return 0;
0;
never executed: return 0;
0
135 }-
136 p->flags |= 0x0010;-
137 return
executed 384985 times by 1 test: return p->n ? p->z : 0;
Executed by:
  • Self test (438)
p->n
p->nDescription
TRUEevaluated 384896 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 89 times by 1 test
Evaluated by:
  • Self test (438)
? p->z : 0;
executed 384985 times by 1 test: return p->n ? p->z : 0;
Executed by:
  • Self test (438)
89-384985
138 }else{-
139 return
executed 3 times by 1 test: return sqlite3_value_text(pVal);
Executed by:
  • Self test (438)
sqlite3_value_text(pVal);
executed 3 times by 1 test: return sqlite3_value_text(pVal);
Executed by:
  • Self test (438)
3
140 }-
141}-
142int sqlite3_value_bytes(sqlite3_value *pVal){-
143 return
executed 402489 times by 1 test: return sqlite3ValueBytes(pVal, 1);
Executed by:
  • Self test (438)
sqlite3ValueBytes(pVal, 1);
executed 402489 times by 1 test: return sqlite3ValueBytes(pVal, 1);
Executed by:
  • Self test (438)
402489
144}-
145int sqlite3_value_bytes16(sqlite3_value *pVal){-
146 return
executed 23 times by 1 test: return sqlite3ValueBytes(pVal, 2);
Executed by:
  • Self test (438)
sqlite3ValueBytes(pVal, 2);
executed 23 times by 1 test: return sqlite3ValueBytes(pVal, 2);
Executed by:
  • Self test (438)
23
147}-
148double sqlite3_value_double(sqlite3_value *pVal){-
149 return
executed 12504589 times by 1 test: return sqlite3VdbeRealValue((Mem*)pVal);
Executed by:
  • Self test (438)
sqlite3VdbeRealValue((Mem*)pVal);
executed 12504589 times by 1 test: return sqlite3VdbeRealValue((Mem*)pVal);
Executed by:
  • Self test (438)
12504589
150}-
151int sqlite3_value_int(sqlite3_value *pVal){-
152 return
executed 2836033 times by 365 tests: return (int)sqlite3VdbeIntValue((Mem*)pVal);
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
(int)sqlite3VdbeIntValue((Mem*)pVal);
executed 2836033 times by 365 tests: return (int)sqlite3VdbeIntValue((Mem*)pVal);
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
2836033
153}-
154sqlite_int64 sqlite3_value_int64(sqlite3_value *pVal){-
155 return
executed 3121466 times by 58 tests: return sqlite3VdbeIntValue((Mem*)pVal);
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (30)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • ...
sqlite3VdbeIntValue((Mem*)pVal);
executed 3121466 times by 58 tests: return sqlite3VdbeIntValue((Mem*)pVal);
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (30)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • ...
3121466
156}-
157unsigned int sqlite3_value_subtype(sqlite3_value *pVal){-
158 Mem *pMem = (Mem*)pVal;-
159 return
executed 2 times by 1 test: return ((pMem->flags & 0x8000) ? pMem->eSubtype : 0);
Executed by:
  • Self test (438)
((
(pMem->flags & 0x8000)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
pMem->flags & 0x8000)
(pMem->flags & 0x8000)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
? pMem->eSubtype : 0);
executed 2 times by 1 test: return ((pMem->flags & 0x8000) ? pMem->eSubtype : 0);
Executed by:
  • Self test (438)
1-2
160}-
161void *sqlite3_value_pointer(sqlite3_value *pVal, const char *zPType){-
162 Mem *p = (Mem*)pVal;-
163 if( (
(p->flags&(0xc...0x0200|0x8000)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
p->flags&(0xc1ff|0x0200|0x8000)) ==
(p->flags&(0xc...0x0200|0x8000)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
164 (0x0001|0x0200|0x8000)
(p->flags&(0xc...0x0200|0x8000)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
165 && zPType!=0
zPType!=0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
166 && p->eSubtype=='p'
p->eSubtype=='p'Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
167 && -
168 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
169 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
170 ) && __builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
171 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
172 ) && (__s1_len = __builtin_strlen (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
173 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
174 ), __s2_len = __builtin_strlen (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
175 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
176 ), (!((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
177 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
178 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
179 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
180 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
181 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
182 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
183 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
184 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
185 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
186 ,
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
187 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
188 ) : (__builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
189 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
190 ) && ((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
191 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
192 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
193 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
194 ) == 1) && (__s1_len = __builtin_strlen (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
195 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
196 ), __s1_len < 4) ? (__builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
197 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
198 ) && ((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
199 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
200 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
201 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
202 ) == 1) ? __builtin_strcmp (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
203 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
204 ,
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
205 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
206 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
207 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
208 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
209 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
210 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
211 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
212 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
213 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
214 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( p->u.zPType ))[3] - __s2[3]);
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
215 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( p->u.zPType ))[3] - __s2[3]);
0-17
216 ))[3] - __s2[3]);
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( p->u.zPType ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
217 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
218 ) && ((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
219 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
220 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
221 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
222 ) == 1) && (__s2_len = __builtin_strlen (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
223 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
224 ), __s2_len < 4) ? (__builtin_constant_p (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
225 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
226 ) && ((size_t)(const void *)((
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
227 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
228 ) + 1) - (size_t)(const void *)(
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
229 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
230 ) == 1) ? __builtin_strcmp (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
231 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
232 ,
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
233 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
234 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
235 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
236 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
237 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
238 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
239 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
240 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
241 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
242 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( zPType ))[3] - __s2[3]);
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
243 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( zPType ))[3] - __s2[3]);
0-17
244 ))[3] - __s2[3]);
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( zPType ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
245 p->u.zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
246 ,
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
247 zPType
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
248 )))); })
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
249 ==0
__extension__ ...e )))); }) ==0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
0-17
250 ){-
251 return
executed 17 times by 1 test: return (void*)p->z;
Executed by:
  • Self test (438)
(void*)p->z;
executed 17 times by 1 test: return (void*)p->z;
Executed by:
  • Self test (438)
17
252 }else{-
253 return
never executed: return 0;
0;
never executed: return 0;
0
254 }-
255}-
256const unsigned char *sqlite3_value_text(sqlite3_value *pVal){-
257 return
executed 3952733 times by 436 tests: return (const unsigned char *)sqlite3ValueText(pVal, 1);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
(const unsigned char *)sqlite3ValueText(pVal, 1);
executed 3952733 times by 436 tests: return (const unsigned char *)sqlite3ValueText(pVal, 1);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
3952733
258}-
259-
260const void *sqlite3_value_text16(sqlite3_value* pVal){-
261 return
executed 180 times by 1 test: return sqlite3ValueText(pVal, 2);
Executed by:
  • Self test (438)
sqlite3ValueText(pVal, 2);
executed 180 times by 1 test: return sqlite3ValueText(pVal, 2);
Executed by:
  • Self test (438)
180
262}-
263const void *sqlite3_value_text16be(sqlite3_value *pVal){-
264 return
executed 1 time by 1 test: return sqlite3ValueText(pVal, 3);
Executed by:
  • Self test (438)
sqlite3ValueText(pVal, 3);
executed 1 time by 1 test: return sqlite3ValueText(pVal, 3);
Executed by:
  • Self test (438)
1
265}-
266const void *sqlite3_value_text16le(sqlite3_value *pVal){-
267 return
executed 12 times by 1 test: return sqlite3ValueText(pVal, 2);
Executed by:
  • Self test (438)
sqlite3ValueText(pVal, 2);
executed 12 times by 1 test: return sqlite3ValueText(pVal, 2);
Executed by:
  • Self test (438)
12
268}-
269-
270-
271-
272-
273-
274int sqlite3_value_type(sqlite3_value* pVal){-
275 static const u8 aType[] = {-
276 4,-
277 5,-
278 3,-
279 5,-
280 1,-
281 5,-
282 1,-
283 5,-
284 2,-
285 5,-
286 2,-
287 5,-
288 1,-
289 5,-
290 1,-
291 5,-
292 4,-
293 5,-
294 3,-
295 5,-
296 1,-
297 5,-
298 1,-
299 5,-
300 2,-
301 5,-
302 2,-
303 5,-
304 1,-
305 5,-
306 1,-
307 5,-
308 };-
309 return
executed 20381213 times by 421 tests: return aType[pVal->flags&0x001f];
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
aType[pVal->flags&0x001f];
executed 20381213 times by 421 tests: return aType[pVal->flags&0x001f];
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
20381213
310}-
311-
312-
313int sqlite3_value_nochange(sqlite3_value *pVal){-
314 return
executed 52 times by 1 test: return (pVal->flags&(0x0001|0x4000))==(0x0001|0x4000);
Executed by:
  • Self test (438)
(pVal->flags&(0x0001|0x4000))==(0x0001|0x4000);
executed 52 times by 1 test: return (pVal->flags&(0x0001|0x4000))==(0x0001|0x4000);
Executed by:
  • Self test (438)
52
315}-
316-
317-
318-
319sqlite3_value *sqlite3_value_dup(const sqlite3_value *pOrig){-
320 sqlite3_value *pNew;-
321 if( pOrig==0
pOrig==0Description
TRUEnever evaluated
FALSEevaluated 19965 times by 1 test
Evaluated by:
  • Self test (438)
) return
never executed: return 0;
0;
never executed: return 0;
0-19965
322 pNew = sqlite3_malloc( sizeof(*pNew) );-
323 if( pNew==0
pNew==0Description
TRUEnever evaluated
FALSEevaluated 19965 times by 1 test
Evaluated by:
  • Self test (438)
) return
never executed: return 0;
0;
never executed: return 0;
0-19965
324 memset(pNew, 0, sizeof(*pNew));-
325 memcpy(pNew, pOrig, -
326 __builtin_offsetof (-
327 Mem-
328 , -
329 zMalloc-
330 )-
331 );-
332 pNew->flags &= ~0x0400;-
333 pNew->db = 0;-
334 if( pNew->flags&(0x0002|0x0010)
pNew->flags&(0x0002|0x0010)Description
TRUEnever evaluated
FALSEevaluated 19965 times by 1 test
Evaluated by:
  • Self test (438)
){
0-19965
335 pNew->flags &= ~(0x0800|0x0400);-
336 pNew->flags |= 0x1000;-
337 if( sqlite3VdbeMemMakeWriteable(pNew)!=0
sqlite3VdbeMem...eable(pNew)!=0Description
TRUEnever evaluated
FALSEnever evaluated
){
0
338 sqlite3ValueFree(pNew);-
339 pNew = 0;-
340 }
never executed: end of block
0
341 }
never executed: end of block
0
342 return
executed 19965 times by 1 test: return pNew;
Executed by:
  • Self test (438)
pNew;
executed 19965 times by 1 test: return pNew;
Executed by:
  • Self test (438)
19965
343}-
344-
345-
346-
347-
348void sqlite3_value_free(sqlite3_value *pOld){-
349 sqlite3ValueFree(pOld);-
350}
executed 25336 times by 1 test: end of block
Executed by:
  • Self test (438)
25336
351static void setResultStrOrError(-
352 sqlite3_context *pCtx,-
353 const char *z,-
354 int n,-
355 u8 enc,-
356 void (*xDel)(void*)-
357){-
358 if( sqlite3VdbeMemSetStr(pCtx->pOut, z, n, enc, xDel)==18
sqlite3VdbeMem...enc, xDel)==18Description
TRUEnever evaluated
FALSEevaluated 2154360 times by 368 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
){
0-2154360
359 sqlite3_result_error_toobig(pCtx);-
360 }
never executed: end of block
0
361}
executed 2154360 times by 368 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
2154360
362static int invokeValueDestructor(-
363 const void *p,-
364 void (*xDel)(void*),-
365 sqlite3_context *pCtx-
366){-
367 -
368 ((void) (0))-
369 ;-
370 if( xDel==0
xDel==0Description
TRUEnever evaluated
FALSEnever evaluated
){
0
371-
372 }
never executed: end of block
else if( xDel==((sqlite3_destructor_type)-1)
xDel==((sqlite...uctor_type)-1)Description
TRUEnever evaluated
FALSEnever evaluated
){
0
373-
374 }
never executed: end of block
else{
0
375 xDel((void*)p);-
376 }
never executed: end of block
0
377 if( pCtx
pCtxDescription
TRUEnever evaluated
FALSEnever evaluated
) sqlite3_result_error_toobig(pCtx);
never executed: sqlite3_result_error_toobig(pCtx);
0
378 return
never executed: return 18;
18;
never executed: return 18;
0
379}-
380void sqlite3_result_blob(-
381 sqlite3_context *pCtx,-
382 const void *z,-
383 int n,-
384 void (*xDel)(void *)-
385){-
386 -
387 ((void) (0))-
388 ;-
389 -
390 ((void) (0))-
391 ;-
392 setResultStrOrError(pCtx, z, n, 0, xDel);-
393}
executed 1282854 times by 363 tests: end of block
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
1282854
394void sqlite3_result_blob64(-
395 sqlite3_context *pCtx,-
396 const void *z,-
397 sqlite3_uint64 n,-
398 void (*xDel)(void *)-
399){-
400 -
401 ((void) (0))-
402 ;-
403 -
404 ((void) (0))-
405 ;-
406 if( n>0x7fffffff
n>0x7fffffffDescription
TRUEnever evaluated
FALSEevaluated 79 times by 1 test
Evaluated by:
  • Self test (438)
){
0-79
407 (void)invokeValueDestructor(z, xDel, pCtx);-
408 }
never executed: end of block
else{
0
409 setResultStrOrError(pCtx, z, (int)n, 0, xDel);-
410 }
executed 79 times by 1 test: end of block
Executed by:
  • Self test (438)
79
411}-
412void sqlite3_result_double(sqlite3_context *pCtx, double rVal){-
413 -
414 ((void) (0))-
415 ;-
416 sqlite3VdbeMemSetDouble(pCtx->pOut, rVal);-
417}
executed 30928 times by 1 test: end of block
Executed by:
  • Self test (438)
30928
418void sqlite3_result_error(sqlite3_context *pCtx, const char *z, int n){-
419 -
420 ((void) (0))-
421 ;-
422 pCtx->isError = 1;-
423 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, 1, ((sqlite3_destructor_type)-1));-
424}
executed 118 times by 1 test: end of block
Executed by:
  • Self test (438)
118
425-
426void sqlite3_result_error16(sqlite3_context *pCtx, const void *z, int n){-
427 -
428 ((void) (0))-
429 ;-
430 pCtx->isError = 1;-
431 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, 2, ((sqlite3_destructor_type)-1));-
432}
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
433-
434void sqlite3_result_int(sqlite3_context *pCtx, int iVal){-
435 -
436 ((void) (0))-
437 ;-
438 sqlite3VdbeMemSetInt64(pCtx->pOut, (i64)iVal);-
439}
executed 295656 times by 1 test: end of block
Executed by:
  • Self test (438)
295656
440void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){-
441 -
442 ((void) (0))-
443 ;-
444 sqlite3VdbeMemSetInt64(pCtx->pOut, iVal);-
445}
executed 1848445 times by 1 test: end of block
Executed by:
  • Self test (438)
1848445
446void sqlite3_result_null(sqlite3_context *pCtx){-
447 -
448 ((void) (0))-
449 ;-
450 sqlite3VdbeMemSetNull(pCtx->pOut);-
451}
executed 205 times by 1 test: end of block
Executed by:
  • Self test (438)
205
452void sqlite3_result_pointer(-
453 sqlite3_context *pCtx,-
454 void *pPtr,-
455 const char *zPType,-
456 void (*xDestructor)(void*)-
457){-
458 Mem *pOut = pCtx->pOut;-
459 -
460 ((void) (0))-
461 ;-
462 sqlite3VdbeMemRelease(pOut);-
463 pOut->flags = 0x0001;-
464 sqlite3VdbeMemSetPointer(pOut, pPtr, zPType, xDestructor);-
465}
executed 17 times by 1 test: end of block
Executed by:
  • Self test (438)
17
466void sqlite3_result_subtype(sqlite3_context *pCtx, unsigned int eSubtype){-
467 Mem *pOut = pCtx->pOut;-
468 -
469 ((void) (0))-
470 ;-
471 pOut->eSubtype = eSubtype & 0xff;-
472 pOut->flags |= 0x8000;-
473}
executed 3 times by 1 test: end of block
Executed by:
  • Self test (438)
3
474void sqlite3_result_text(-
475 sqlite3_context *pCtx,-
476 const char *z,-
477 int n,-
478 void (*xDel)(void *)-
479){-
480 -
481 ((void) (0))-
482 ;-
483 setResultStrOrError(pCtx, z, n, 1, xDel);-
484}
executed 425795 times by 6 tests: end of block
Executed by:
  • Self test (2)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (438)
425795
485void sqlite3_result_text64(-
486 sqlite3_context *pCtx,-
487 const char *z,-
488 sqlite3_uint64 n,-
489 void (*xDel)(void *),-
490 unsigned char enc-
491){-
492 -
493 ((void) (0))-
494 ;-
495 -
496 ((void) (0))-
497 ;-
498 if( enc==4
enc==4Description
TRUEnever evaluated
FALSEevaluated 445615 times by 1 test
Evaluated by:
  • Self test (438)
) enc = 2;
never executed: enc = 2;
0-445615
499 if( n>0x7fffffff
n>0x7fffffffDescription
TRUEnever evaluated
FALSEevaluated 445615 times by 1 test
Evaluated by:
  • Self test (438)
){
0-445615
500 (void)invokeValueDestructor(z, xDel, pCtx);-
501 }
never executed: end of block
else{
0
502 setResultStrOrError(pCtx, z, (int)n, enc, xDel);-
503 }
executed 445615 times by 1 test: end of block
Executed by:
  • Self test (438)
445615
504}-
505-
506void sqlite3_result_text16(-
507 sqlite3_context *pCtx,-
508 const void *z,-
509 int n,-
510 void (*xDel)(void *)-
511){-
512 -
513 ((void) (0))-
514 ;-
515 setResultStrOrError(pCtx, z, n, 2, xDel);-
516}
executed 4 times by 1 test: end of block
Executed by:
  • Self test (438)
4
517void sqlite3_result_text16be(-
518 sqlite3_context *pCtx,-
519 const void *z,-
520 int n,-
521 void (*xDel)(void *)-
522){-
523 -
524 ((void) (0))-
525 ;-
526 setResultStrOrError(pCtx, z, n, 3, xDel);-
527}
executed 7 times by 1 test: end of block
Executed by:
  • Self test (438)
7
528void sqlite3_result_text16le(-
529 sqlite3_context *pCtx,-
530 const void *z,-
531 int n,-
532 void (*xDel)(void *)-
533){-
534 -
535 ((void) (0))-
536 ;-
537 setResultStrOrError(pCtx, z, n, 2, xDel);-
538}
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
539-
540void sqlite3_result_value(sqlite3_context *pCtx, sqlite3_value *pValue){-
541 -
542 ((void) (0))-
543 ;-
544 sqlite3VdbeMemCopy(pCtx->pOut, pValue);-
545}
executed 491604 times by 1 test: end of block
Executed by:
  • Self test (438)
491604
546void sqlite3_result_zeroblob(sqlite3_context *pCtx, int n){-
547 -
548 ((void) (0))-
549 ;-
550 sqlite3VdbeMemSetZeroBlob(pCtx->pOut, n);-
551}
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
552int sqlite3_result_zeroblob64(sqlite3_context *pCtx, u64 n){-
553 Mem *pOut = pCtx->pOut;-
554 -
555 ((void) (0))-
556 ;-
557 if( n>(u64)pOut->db->aLimit[0]
n>(u64)pOut->db->aLimit[0]Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 871 times by 1 test
Evaluated by:
  • Self test (438)
){
5-871
558 return
executed 5 times by 1 test: return 18;
Executed by:
  • Self test (438)
18;
executed 5 times by 1 test: return 18;
Executed by:
  • Self test (438)
5
559 }-
560 sqlite3VdbeMemSetZeroBlob(pCtx->pOut, (int)n);-
561 return
executed 871 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 871 times by 1 test: return 0;
Executed by:
  • Self test (438)
871
562}-
563void sqlite3_result_error_code(sqlite3_context *pCtx, int errCode){-
564 pCtx->isError = errCode
errCodeDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
? errCode : -1;
10-22
565-
566-
567-
568 if( pCtx->pOut->flags & 0x0001
pCtx->pOut->flags & 0x0001Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
){
14-18
569 sqlite3VdbeMemSetStr(pCtx->pOut, sqlite3ErrStr(errCode), -1,-
570 1, ((sqlite3_destructor_type)0));-
571 }
executed 18 times by 1 test: end of block
Executed by:
  • Self test (438)
18
572}
executed 32 times by 1 test: end of block
Executed by:
  • Self test (438)
32
573-
574-
575void sqlite3_result_error_toobig(sqlite3_context *pCtx){-
576 -
577 ((void) (0))-
578 ;-
579 pCtx->isError = 18;-
580 sqlite3VdbeMemSetStr(pCtx->pOut, "string or blob too big", -1,-
581 1, ((sqlite3_destructor_type)0));-
582}
never executed: end of block
0
583-
584-
585void sqlite3_result_error_nomem(sqlite3_context *pCtx){-
586 -
587 ((void) (0))-
588 ;-
589 sqlite3VdbeMemSetNull(pCtx->pOut);-
590 pCtx->isError = 7;-
591 sqlite3OomFault(pCtx->pOut->db);-
592}
never executed: end of block
0
593-
594-
595-
596-
597-
598static int doWalCallbacks(sqlite3 *db){-
599 int rc = 0;-
600-
601 int i;-
602 for(i=0; i<db->nDb
i<db->nDbDescription
TRUEevaluated 859049 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 421543 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
; i++){
421543-859049
603 Btree *pBt = db->aDb[i].pBt;-
604 if( pBt
pBtDescription
TRUEevaluated 469592 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 389457 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
389457-469592
605 int nEntry;-
606 sqlite3BtreeEnter(pBt);-
607 nEntry = sqlite3PagerWalCallback(sqlite3BtreePager(pBt));-
608 sqlite3BtreeLeave(pBt);-
609 if( nEntry>0
nEntry>0Description
TRUEevaluated 55466 times by 26 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (64)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • ...
FALSEevaluated 414126 times by 433 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& db->xWalCallback
db->xWalCallbackDescription
TRUEevaluated 15374 times by 25 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEevaluated 40092 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (64)
&& rc==0
rc==0Description
TRUEevaluated 15374 times by 25 tests
Evaluated by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
FALSEnever evaluated
){
0-414126
610 rc = db->xWalCallback(db->pWalArg, db, db->aDb[i].zDbSName, nEntry);-
611 }
executed 15374 times by 25 tests: end of block
Executed by:
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (28)
  • Self test (29)
  • Self test (41)
  • Self test (438)
  • Self test (50)
  • Self test (62)
  • Self test (63)
  • Self test (72)
  • Self test (73)
  • Self test (81)
  • Self test (83)
  • Self test (86)
  • Self test (91)
  • Self test (92)
  • Self test (93)
  • Self test (94)
  • Self test (95)
  • Self test (96)
  • Self test (97)
  • Self test (98)
  • Self test (99)
15374
612 }
executed 469592 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
469592
613 }
executed 859049 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
859049
614-
615 return
executed 421543 times by 434 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
rc;
executed 421543 times by 434 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
421543
616}-
617static int sqlite3Step(Vdbe *p){-
618 sqlite3 *db;-
619 int rc;-
620-
621 -
622 ((void) (0))-
623 ;-
624 if( p->magic!=0x2df20da3
p->magic!=0x2df20da3Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3787330 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
11-3787330
625 sqlite3_reset((sqlite3_stmt*)p);-
626-
627 }
executed 11 times by 1 test: end of block
Executed by:
  • Self test (438)
11
628-
629-
630 db = p->db;-
631 if( db->mallocFailed
db->mallocFailedDescription
TRUEevaluated 75 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3787266 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
75-3787266
632 p->rc = 7;-
633 return
executed 75 times by 1 test: return 7;
Executed by:
  • Self test (438)
7;
executed 75 times by 1 test: return 7;
Executed by:
  • Self test (438)
75
634 }-
635-
636 if( p->pc<=0
p->pc<=0Description
TRUEevaluated 1125183 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 2662083 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& p->expired
p->expiredDescription
TRUEevaluated 21430 times by 3 tests
Evaluated by:
  • Self test (27)
  • Self test (438)
  • Self test (84)
FALSEevaluated 1103753 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
21430-2662083
637 p->rc = 17;-
638 rc = 1;-
639 goto
executed 21430 times by 3 tests: goto end_of_step;
Executed by:
  • Self test (27)
  • Self test (438)
  • Self test (84)
end_of_step;
executed 21430 times by 3 tests: goto end_of_step;
Executed by:
  • Self test (27)
  • Self test (438)
  • Self test (84)
21430
640 }-
641 if( p->pc<0
p->pc<0Description
TRUEevaluated 1103753 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 2662083 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
1103753-2662083
642-
643-
644-
645-
646 if( db->nVdbeActive==0
db->nVdbeActive==0Description
TRUEevaluated 925387 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 178366 times by 40 tests
Evaluated by:
  • Self test
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (46)
  • Self test (47)
  • Self test (48)
  • Self test (5)
  • Self test (57)
  • Self test (58)
  • Self test (72)
  • Self test (73)
  • Self test (77)
  • ...
){
178366-925387
647 db->u1.isInterrupted = 0;-
648 }
executed 925387 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
925387
649-
650 -
651 ((void) (0))-
652-
653 -
654 ;-
655-
656-
657 if( (db->xProfile
db->xProfileDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1103745 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
|| (
(db->mTrace & 0x02)!=0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1103739 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
db->mTrace & 0x02)!=0
(db->mTrace & 0x02)!=0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1103739 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
)
6-1103745
658 && !db->init.busy
!db->init.busyDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
&& p->zSql
p->zSqlDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-12
659 sqlite3OsCurrentTimeInt64(db->pVfs, &p->startTime);-
660 }
executed 12 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
12
661 -
662 ((void) (0))-
663 ;-
664 }
executed 1103741 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1103741
665-
666-
667 db->nVdbeActive++;-
668 if( p->readOnly==0
p->readOnly==0Description
TRUEevaluated 688553 times by 411 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • ...
FALSEevaluated 415200 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) db->nVdbeWrite++;
executed 688553 times by 411 tests: db->nVdbeWrite++;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • ...
415200-688553
669 if( p->bIsReader
p->bIsReaderDescription
TRUEevaluated 997275 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 106478 times by 39 tests
Evaluated by:
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (2)
  • Self test (20)
  • Self test (22)
  • Self test (27)
  • Self test (3)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • Self test (4)
  • Self test (438)
  • Self test (5)
  • Self test (54)
  • Self test (6)
  • Self test (64)
  • Self test (77)
  • Self test (78)
  • Self test (79)
  • ...
) db->nVdbeRead++;
executed 997275 times by 435 tests: db->nVdbeRead++;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
106478-997275
670 p->pc = 0;-
671 }
executed 1103753 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
1103753
672-
673-
674-
675-
676 if( p->explain
p->explainDescription
TRUEevaluated 11682 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3754154 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
11682-3754154
677 rc = sqlite3VdbeList(p);-
678 }
executed 11682 times by 1 test: end of block
Executed by:
  • Self test (438)
else
11682
679-
680 {-
681 db->nVdbeExec++;-
682 rc = sqlite3VdbeExec(p);-
683 db->nVdbeExec--;-
684 }
executed 3753806 times by 435 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
3753806
685-
686-
687-
688 if( rc!=100
rc!=100Description
TRUEevaluated 1060013 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 2705475 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) if( ((
((p)->startTime)>0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1060003 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
p)->startTime)>0
((p)->startTime)>0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 1060003 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){ invokeProfileCallback(db,p); }
executed 10 times by 1 test: end of block
Executed by:
  • Self test (438)
;
10-2705475
689-
690-
691 if( rc==101
rc==101Description
TRUEevaluated 1052223 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 2713265 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
&& db->autoCommit
db->autoCommitDescription
TRUEevaluated 421543 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 630680 times by 53 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (12)
  • Self test (14)
  • Self test (16)
  • Self test (18)
  • Self test (20)
  • Self test (22)
  • Self test (3)
  • Self test (30)
  • Self test (31)
  • Self test (34)
  • Self test (35)
  • Self test (38)
  • Self test (4)
  • Self test (42)
  • Self test (438)
  • Self test (44)
  • Self test (49)
  • Self test (5)
  • Self test (50)
  • Self test (51)
  • Self test (54)
  • ...
){
421543-2713265
692 -
693 ((void) (0))-
694 ;-
695 p->rc = doWalCallbacks(db);-
696 if( p->rc!=0
p->rc!=0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 421540 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
3-421540
697 rc = 1;-
698 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test (438)
3
699 }
executed 421543 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
421543
700-
701 db->errCode = rc;-
702 if( 7==sqlite3ApiExit(p->db, p->rc)
7==sqlite3ApiE...(p->db, p->rc)Description
TRUEevaluated 468 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3765020 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
468-3765020
703 p->rc = 7;-
704 }
executed 468 times by 1 test: end of block
Executed by:
  • Self test (438)
468
705end_of_step:
code before this statement executed 3765488 times by 435 tests: end_of_step:
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
3765488
706-
707-
708-
709-
710-
711-
712-
713 -
714 ((void) (0))-
715-
716 -
717 ;-
718 -
719 ((void) (0))-
720 ;-
721 if( (
(p->prepFlags & 0x80)!=0Description
TRUEevaluated 3589431 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
FALSEevaluated 197487 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
p->prepFlags & 0x80)!=0
(p->prepFlags & 0x80)!=0Description
TRUEevaluated 3589431 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
FALSEevaluated 197487 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
197487-3589431
722 && rc!=100
rc!=100Description
TRUEevaluated 1039232 times by 104 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
FALSEevaluated 2550199 times by 76 tests
Evaluated by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (28)
  • Self test (3)
  • Self test (30)
  • Self test (32)
  • Self test (33)
  • ...
1039232-2550199
723 && rc!=101
rc!=101Description
TRUEevaluated 29076 times by 20 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (84)
FALSEevaluated 1010156 times by 103 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • ...
29076-1010156
724 ){-
725-
726-
727-
728-
729 rc = sqlite3VdbeTransferError(p);-
730 }
executed 29076 times by 20 tests: end of block
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (35)
  • Self test (36)
  • Self test (38)
  • Self test (39)
  • Self test (438)
  • Self test (47)
  • Self test (50)
  • Self test (51)
  • Self test (52)
  • Self test (53)
  • Self test (55)
  • Self test (59)
  • Self test (84)
29076
731 return
executed 3786918 times by 435 tests: return (rc&db->errMask);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
(rc&db->errMask);
executed 3786918 times by 435 tests: return (rc&db->errMask);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
3786918
732}-
733-
734-
735-
736-
737-
738-
739int sqlite3_step(sqlite3_stmt *pStmt){-
740 int rc = 0;-
741 Vdbe *v = (Vdbe*)pStmt;-
742 int cnt = 0;-
743 sqlite3 *db;-
744-
745 if( vdbeSafetyNotNull(v)
vdbeSafetyNotNull(v)Description
TRUEnever evaluated
FALSEevaluated 3763747 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
0-3763747
746 return
never executed: return sqlite3MisuseError(686);
sqlite3MisuseError(686);
never executed: return sqlite3MisuseError(686);
0
747 }-
748 db = v->db;-
749 sqlite3_mutex_enter(db->mutex);-
750 v->doingRerun = 0;-
751 while( (
(rc = sqlite3Step(v))==17Description
TRUEevaluated 23673 times by 11 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
FALSEevaluated 3763320 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
rc = sqlite3Step(v))==17
(rc = sqlite3Step(v))==17Description
TRUEevaluated 23673 times by 11 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
FALSEevaluated 3763320 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
23673-3763320
752 && cnt++ < 50
cnt++ < 50Description
TRUEevaluated 23673 times by 11 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
FALSEnever evaluated
){
0-23673
753 int savedPc = v->pc;-
754 rc = sqlite3Reprepare(v);-
755 if( rc!=0
rc!=0Description
TRUEevaluated 79 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 23594 times by 11 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
){
79-23594
756 const char *zErr = (const char *)sqlite3_value_text(db->pErr);-
757 sqlite3DbFree(db, v->zErrMsg);-
758 if( !db->mallocFailed
!db->mallocFailedDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-79
759 v->zErrMsg = sqlite3DbStrDup(db, zErr);-
760 v->rc = rc = sqlite3ApiExit(db, rc);-
761 }
executed 79 times by 1 test: end of block
Executed by:
  • Self test (438)
else {
79
762 v->zErrMsg = 0;-
763 v->rc = rc = 7;-
764 }
never executed: end of block
0
765 break;
executed 79 times by 1 test: break;
Executed by:
  • Self test (438)
79
766 }-
767 sqlite3_reset(pStmt);-
768 if( savedPc>=0
savedPc>=0Description
TRUEevaluated 2209 times by 10 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
FALSEevaluated 21385 times by 3 tests
Evaluated by:
  • Self test (27)
  • Self test (438)
  • Self test (84)
) v->doingRerun = 1;
executed 2209 times by 10 tests: v->doingRerun = 1;
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
2209-21385
769 -
770 ((void) (0))-
771 ;-
772 }
executed 23594 times by 11 tests: end of block
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
23594
773 sqlite3_mutex_leave(db->mutex);-
774 return
executed 3763399 times by 435 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
rc;
executed 3763399 times by 435 tests: return rc;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
3763399
775}-
776-
777-
778-
779-
780-
781-
782void *sqlite3_user_data(sqlite3_context *p){-
783 -
784 ((void) (0))-
785 ;-
786 return
executed 433431 times by 3 tests: return p->pFunc->pUserData;
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
p->pFunc->pUserData;
executed 433431 times by 3 tests: return p->pFunc->pUserData;
Executed by:
  • Self test (32)
  • Self test (33)
  • Self test (438)
433431
787}-
788sqlite3 *sqlite3_context_db_handle(sqlite3_context *p){-
789 -
790 ((void) (0))-
791 ;-
792 return
executed 1492467 times by 374 tests: return p->pOut->db;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
p->pOut->db;
executed 1492467 times by 374 tests: return p->pOut->db;
Executed by:
  • Self test (10)
  • Self test (100)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • Self test (122)
  • Self test (123)
  • Self test (124)
  • Self test (125)
  • Self test (126)
  • ...
1492467
793}-
794int sqlite3_vtab_nochange(sqlite3_context *p){-
795 -
796 ((void) (0))-
797 ;-
798 return
executed 52 times by 1 test: return sqlite3_value_nochange(p->pOut);
Executed by:
  • Self test (438)
sqlite3_value_nochange(p->pOut);
executed 52 times by 1 test: return sqlite3_value_nochange(p->pOut);
Executed by:
  • Self test (438)
52
799}-
800sqlite3_int64 sqlite3StmtCurrentTime(sqlite3_context *p){-
801 int rc;-
802-
803 sqlite3_int64 *piTime = &p->pVdbe->iCurrentTime;-
804 -
805 ((void) (0))-
806 ;-
807-
808-
809-
810-
811 if( *
*piTime==0Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
piTime==0
*piTime==0Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test (438)
){
17-61
812 rc = sqlite3OsCurrentTimeInt64(p->pOut->db->pVfs, piTime);-
813 if( rc
rcDescription
TRUEnever evaluated
FALSEevaluated 61 times by 1 test
Evaluated by:
  • Self test (438)
) *
never executed: *piTime = 0;
piTime = 0;
never executed: *piTime = 0;
0-61
814 }
executed 61 times by 1 test: end of block
Executed by:
  • Self test (438)
61
815 return
executed 78 times by 1 test: return *piTime;
Executed by:
  • Self test (438)
*piTime;
executed 78 times by 1 test: return *piTime;
Executed by:
  • Self test (438)
78
816}-
817-
818-
819-
820-
821-
822static __attribute__((noinline)) void *createAggContext(sqlite3_context *p, int nByte){-
823 Mem *pMem = p->pMem;-
824 -
825 ((void) (0))-
826 ;-
827 if( nByte<=0
nByte<=0Description
TRUEevaluated 10542 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 56198 times by 1 test
Evaluated by:
  • Self test (438)
){
10542-56198
828 sqlite3VdbeMemSetNull(pMem);-
829 pMem->z = 0;-
830 }
executed 10542 times by 1 test: end of block
Executed by:
  • Self test (438)
else{
10542
831 sqlite3VdbeMemClearAndResize(pMem, nByte);-
832 pMem->flags = 0x2000;-
833 pMem->u.pDef = p->pFunc;-
834 if( pMem->z
pMem->zDescription
TRUEevaluated 56198 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-56198
835 memset(pMem->z, 0, nByte);-
836 }
executed 56198 times by 1 test: end of block
Executed by:
  • Self test (438)
56198
837 }
executed 56198 times by 1 test: end of block
Executed by:
  • Self test (438)
56198
838 return
executed 66740 times by 1 test: return (void*)pMem->z;
Executed by:
  • Self test (438)
(void*)pMem->z;
executed 66740 times by 1 test: return (void*)pMem->z;
Executed by:
  • Self test (438)
66740
839}-
840-
841-
842-
843-
844-
845-
846void *sqlite3_aggregate_context(sqlite3_context *p, int nByte){-
847 -
848 ((void) (0))-
849 ;-
850 -
851 ((void) (0))-
852 ;-
853 ;-
854 if( (
(p->pMem->flags & 0x2000)==0Description
TRUEevaluated 66740 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6966377 times by 1 test
Evaluated by:
  • Self test (438)
p->pMem->flags & 0x2000)==0
(p->pMem->flags & 0x2000)==0Description
TRUEevaluated 66740 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6966377 times by 1 test
Evaluated by:
  • Self test (438)
){
66740-6966377
855 return
executed 66740 times by 1 test: return createAggContext(p, nByte);
Executed by:
  • Self test (438)
createAggContext(p, nByte);
executed 66740 times by 1 test: return createAggContext(p, nByte);
Executed by:
  • Self test (438)
66740
856 }else{-
857 return
executed 6966377 times by 1 test: return (void*)p->pMem->z;
Executed by:
  • Self test (438)
(void*)p->pMem->z;
executed 6966377 times by 1 test: return (void*)p->pMem->z;
Executed by:
  • Self test (438)
6966377
858 }-
859}-
860void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){-
861 AuxData *pAuxData;-
862-
863 -
864 ((void) (0))-
865 ;-
866-
867-
868-
869 -
870 ((void) (0))-
871 ;-
872-
873 for(pAuxData=pCtx->pVdbe->pAuxData; pAuxData
pAuxDataDescription
TRUEevaluated 232 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 117 times by 1 test
Evaluated by:
  • Self test (438)
; pAuxData=pAuxData->pNextAux){
117-232
874 if( pAuxData->iAuxArg==iArg
pAuxData->iAuxArg==iArgDescription
TRUEevaluated 224 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
&& (pAuxData->iAuxOp==pCtx->iOp
pAuxData->iAuxOp==pCtx->iOpDescription
TRUEevaluated 104 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 120 times by 1 test
Evaluated by:
  • Self test (438)
|| iArg<0
iArg<0Description
TRUEnever evaluated
FALSEevaluated 120 times by 1 test
Evaluated by:
  • Self test (438)
) ){
0-224
875 return
executed 104 times by 1 test: return pAuxData->pAux;
Executed by:
  • Self test (438)
pAuxData->pAux;
executed 104 times by 1 test: return pAuxData->pAux;
Executed by:
  • Self test (438)
104
876 }-
877 }
executed 128 times by 1 test: end of block
Executed by:
  • Self test (438)
128
878 return
executed 117 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 117 times by 1 test: return 0;
Executed by:
  • Self test (438)
117
879}-
880void sqlite3_set_auxdata(-
881 sqlite3_context *pCtx,-
882 int iArg,-
883 void *pAux,-
884 void (*xDelete)(void*)-
885){-
886 AuxData *pAuxData;-
887 Vdbe *pVdbe = pCtx->pVdbe;-
888-
889 -
890 ((void) (0))-
891 ;-
892-
893-
894-
895 -
896 ((void) (0))-
897 ;-
898-
899-
900 for(pAuxData=pVdbe->pAuxData; pAuxData
pAuxDataDescription
TRUEevaluated 139 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 117 times by 1 test
Evaluated by:
  • Self test (438)
; pAuxData=pAuxData->pNextAux){
117-139
901 if( pAuxData->iAuxArg==iArg
pAuxData->iAuxArg==iArgDescription
TRUEevaluated 131 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test (438)
&& (pAuxData->iAuxOp==pCtx->iOp
pAuxData->iAuxOp==pCtx->iOpDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 119 times by 1 test
Evaluated by:
  • Self test (438)
|| iArg<0
iArg<0Description
TRUEnever evaluated
FALSEevaluated 119 times by 1 test
Evaluated by:
  • Self test (438)
) ){
0-131
902 break;
executed 12 times by 1 test: break;
Executed by:
  • Self test (438)
12
903 }-
904 }
executed 127 times by 1 test: end of block
Executed by:
  • Self test (438)
127
905 if( pAuxData==0
pAuxData==0Description
TRUEevaluated 117 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
){
12-117
906 pAuxData = sqlite3DbMallocZero(pVdbe->db, sizeof(AuxData));-
907 if( !pAuxData
!pAuxDataDescription
TRUEnever evaluated
FALSEevaluated 117 times by 1 test
Evaluated by:
  • Self test (438)
) goto
never executed: goto failed;
failed;
never executed: goto failed;
0-117
908 pAuxData->iAuxOp = pCtx->iOp;-
909 pAuxData->iAuxArg = iArg;-
910 pAuxData->pNextAux = pVdbe->pAuxData;-
911 pVdbe->pAuxData = pAuxData;-
912 if( pCtx->isError==0
pCtx->isError==0Description
TRUEevaluated 113 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test (438)
) pCtx->isError = -1;
executed 113 times by 1 test: pCtx->isError = -1;
Executed by:
  • Self test (438)
4-113
913 }
executed 117 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( pAuxData->xDeleteAux
pAuxData->xDeleteAuxDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-117
914 pAuxData->xDeleteAux(pAuxData->pAux);-
915 }
executed 12 times by 1 test: end of block
Executed by:
  • Self test (438)
12
916-
917 pAuxData->pAux = pAux;-
918 pAuxData->xDeleteAux = xDelete;-
919 return;
executed 129 times by 1 test: return;
Executed by:
  • Self test (438)
129
920-
921failed:-
922 if( xDelete
xDeleteDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
923 xDelete(pAux);-
924 }
never executed: end of block
0
925}
never executed: end of block
0
926int sqlite3_aggregate_count(sqlite3_context *p){-
927 -
928 ((void) (0))-
929 ;-
930 return
executed 1 time by 1 test: return p->pMem->n;
Executed by:
  • Self test (438)
p->pMem->n;
executed 1 time by 1 test: return p->pMem->n;
Executed by:
  • Self test (438)
1
931}-
932-
933-
934-
935-
936-
937int sqlite3_column_count(sqlite3_stmt *pStmt){-
938 Vdbe *pVm = (Vdbe *)pStmt;-
939 return
executed 2389760 times by 435 tests: return pVm ? pVm->nResColumn : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pVm
pVmDescription
TRUEevaluated 2389760 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
? pVm->nResColumn : 0;
executed 2389760 times by 435 tests: return pVm ? pVm->nResColumn : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
0-2389760
940}-
941-
942-
943-
944-
945-
946int sqlite3_data_count(sqlite3_stmt *pStmt){-
947 Vdbe *pVm = (Vdbe *)pStmt;-
948 if( pVm==0
pVm==0Description
TRUEnever evaluated
FALSEevaluated 282 times by 1 test
Evaluated by:
  • Self test (438)
|| pVm->pResultSet==0
pVm->pResultSet==0Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 254 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 28 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 28 times by 1 test: return 0;
Executed by:
  • Self test (438)
0-282
949 return
executed 254 times by 1 test: return pVm->nResColumn;
Executed by:
  • Self test (438)
pVm->nResColumn;
executed 254 times by 1 test: return pVm->nResColumn;
Executed by:
  • Self test (438)
254
950}-
951-
952-
953-
954-
955static const Mem *columnNullValue(void){-
956 static const Mem nullMem-
957-
958-
959-
960 = {-
961 {0},-
962 (u16)0x0001,-
963 (u8)0,-
964 (u8)0,-
965 (int)0,-
966 (char*)0,-
967 (char*)0,-
968 (int)0,-
969 (u32)0,-
970 (sqlite3*)0,-
971 (void(*)(void*))0,-
972-
973-
974-
975-
976 };-
977 return
executed 15 times by 1 test: return &nullMem;
Executed by:
  • Self test (438)
&nullMem;
executed 15 times by 1 test: return &nullMem;
Executed by:
  • Self test (438)
15
978}-
979-
980-
981-
982-
983-
984-
985-
986static Mem *columnMem(sqlite3_stmt *pStmt, int i){-
987 Vdbe *pVm;-
988 Mem *pOut;-
989-
990 pVm = (Vdbe *)pStmt;-
991 if( pVm==0
pVm==0Description
TRUEnever evaluated
FALSEevaluated 11945544 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
) return
never executed: return (Mem*)columnNullValue();
(Mem*)columnNullValue();
never executed: return (Mem*)columnNullValue();
0-11945544
992 -
993 ((void) (0))-
994 ;-
995 sqlite3_mutex_enter(pVm->db->mutex);-
996 if( pVm->pResultSet!=0
pVm->pResultSet!=0Description
TRUEevaluated 11945543 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
&& i<pVm->nResColumn
i<pVm->nResColumnDescription
TRUEevaluated 11945543 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
&& i>=0
i>=0Description
TRUEevaluated 11945529 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test (438)
){
0-11945543
997 pOut = &pVm->pResultSet[i];-
998 }
executed 11945529 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
else{
11945529
999 sqlite3Error(pVm->db, 25);-
1000 pOut = (Mem*)columnNullValue();-
1001 }
executed 15 times by 1 test: end of block
Executed by:
  • Self test (438)
15
1002 return
executed 11945544 times by 434 tests: return pOut;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
pOut;
executed 11945544 times by 434 tests: return pOut;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11945544
1003}-
1004static void columnMallocFailure(sqlite3_stmt *pStmt)-
1005{-
1006-
1007-
1008-
1009-
1010-
1011 Vdbe *p = (Vdbe *)pStmt;-
1012 if( p
pDescription
TRUEevaluated 11945544 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
){
0-11945544
1013 -
1014 ((void) (0))-
1015 ;-
1016 -
1017 ((void) (0))-
1018 ;-
1019 p->rc = sqlite3ApiExit(p->db, p->rc);-
1020 sqlite3_mutex_leave(p->db->mutex);-
1021 }
executed 11945544 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11945544
1022}
executed 11945544 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
11945544
1023-
1024-
1025-
1026-
1027-
1028const void *sqlite3_column_blob(sqlite3_stmt *pStmt, int i){-
1029 const void *val;-
1030 val = sqlite3_value_blob( columnMem(pStmt,i) );-
1031-
1032-
1033-
1034-
1035 columnMallocFailure(pStmt);-
1036 return
executed 157096 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 157096 times by 1 test: return val;
Executed by:
  • Self test (438)
157096
1037}-
1038int sqlite3_column_bytes(sqlite3_stmt *pStmt, int i){-
1039 int val = sqlite3_value_bytes( columnMem(pStmt,i) );-
1040 columnMallocFailure(pStmt);-
1041 return
executed 157582 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 157582 times by 1 test: return val;
Executed by:
  • Self test (438)
157582
1042}-
1043int sqlite3_column_bytes16(sqlite3_stmt *pStmt, int i){-
1044 int val = sqlite3_value_bytes16( columnMem(pStmt,i) );-
1045 columnMallocFailure(pStmt);-
1046 return
executed 19 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 19 times by 1 test: return val;
Executed by:
  • Self test (438)
19
1047}-
1048double sqlite3_column_double(sqlite3_stmt *pStmt, int i){-
1049 double val = sqlite3_value_double( columnMem(pStmt,i) );-
1050 columnMallocFailure(pStmt);-
1051 return
executed 472510 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 472510 times by 1 test: return val;
Executed by:
  • Self test (438)
472510
1052}-
1053int sqlite3_column_int(sqlite3_stmt *pStmt, int i){-
1054 int val = sqlite3_value_int( columnMem(pStmt,i) );-
1055 columnMallocFailure(pStmt);-
1056 return
executed 3293 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 3293 times by 1 test: return val;
Executed by:
  • Self test (438)
3293
1057}-
1058sqlite_int64 sqlite3_column_int64(sqlite3_stmt *pStmt, int i){-
1059 sqlite_int64 val = sqlite3_value_int64( columnMem(pStmt,i) );-
1060 columnMallocFailure(pStmt);-
1061 return
executed 2795392 times by 58 tests: return val;
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (30)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • ...
val;
executed 2795392 times by 58 tests: return val;
Executed by:
  • Self test (10)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (11)
  • Self test (12)
  • Self test (13)
  • Self test (14)
  • Self test (15)
  • Self test (16)
  • Self test (17)
  • Self test (18)
  • Self test (19)
  • Self test (2)
  • Self test (20)
  • Self test (21)
  • Self test (22)
  • Self test (23)
  • Self test (3)
  • Self test (30)
  • Self test (32)
  • Self test (33)
  • Self test (34)
  • Self test (35)
  • ...
2795392
1062}-
1063const unsigned char *sqlite3_column_text(sqlite3_stmt *pStmt, int i){-
1064 const unsigned char *val = sqlite3_value_text( columnMem(pStmt,i) );-
1065 columnMallocFailure(pStmt);-
1066 return
executed 2358418 times by 434 tests: return val;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
val;
executed 2358418 times by 434 tests: return val;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
2358418
1067}-
1068sqlite3_value *sqlite3_column_value(sqlite3_stmt *pStmt, int i){-
1069 Mem *pOut = columnMem(pStmt, i);-
1070 if( pOut->flags&0x0800
pOut->flags&0x0800Description
TRUEevaluated 34643 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 194848 times by 1 test
Evaluated by:
  • Self test (438)
){
34643-194848
1071 pOut->flags &= ~0x0800;-
1072 pOut->flags |= 0x1000;-
1073 }
executed 34643 times by 1 test: end of block
Executed by:
  • Self test (438)
34643
1074 columnMallocFailure(pStmt);-
1075 return
executed 229491 times by 1 test: return (sqlite3_value *)pOut;
Executed by:
  • Self test (438)
(sqlite3_value *)pOut;
executed 229491 times by 1 test: return (sqlite3_value *)pOut;
Executed by:
  • Self test (438)
229491
1076}-
1077-
1078const void *sqlite3_column_text16(sqlite3_stmt *pStmt, int i){-
1079 const void *val = sqlite3_value_text16( columnMem(pStmt,i) );-
1080 columnMallocFailure(pStmt);-
1081 return
executed 26 times by 1 test: return val;
Executed by:
  • Self test (438)
val;
executed 26 times by 1 test: return val;
Executed by:
  • Self test (438)
26
1082}-
1083-
1084int sqlite3_column_type(sqlite3_stmt *pStmt, int i){-
1085 int iType = sqlite3_value_type( columnMem(pStmt,i) );-
1086 columnMallocFailure(pStmt);-
1087 return
executed 5771717 times by 421 tests: return iType;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
iType;
executed 5771717 times by 421 tests: return iType;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
5771717
1088}-
1089static const void *columnName(-
1090 sqlite3_stmt *pStmt,-
1091 int N,-
1092 const void *(*xFunc)(Mem*),-
1093 int useType-
1094){-
1095 const void *ret;-
1096 Vdbe *p;-
1097 int n;-
1098 sqlite3 *db;-
1099-
1100-
1101-
1102-
1103-
1104-
1105 ret = 0;-
1106 p = (Vdbe *)pStmt;-
1107 db = p->db;-
1108 -
1109 ((void) (0))-
1110 ;-
1111 n = sqlite3_column_count(pStmt);-
1112 if( N<n
N<nDescription
TRUEevaluated 130800 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 48 times by 1 test
Evaluated by:
  • Self test (438)
&& N>=0
N>=0Description
TRUEevaluated 130752 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEevaluated 48 times by 1 test
Evaluated by:
  • Self test (438)
){
48-130800
1113 N += useType*n;-
1114 sqlite3_mutex_enter(db->mutex);-
1115 -
1116 ((void) (0))-
1117 ;-
1118 ret = xFunc(&p->aColName[N]);-
1119-
1120-
1121-
1122 if( db->mallocFailed
db->mallocFailedDescription
TRUEnever evaluated
FALSEevaluated 130752 times by 434 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
){
0-130752
1123 sqlite3OomClear(db);-
1124 ret = 0;-
1125 }
never executed: end of block
0
1126 sqlite3_mutex_leave(db->mutex);-
1127 }
executed 130752 times by 434 tests: end of block
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
130752
1128 return
executed 130848 times by 434 tests: return ret;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
ret;
executed 130848 times by 434 tests: return ret;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
130848
1129}-
1130-
1131-
1132-
1133-
1134-
1135const char *sqlite3_column_name(sqlite3_stmt *pStmt, int N){-
1136 return
executed 130545 times by 434 tests: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
columnName(
executed 130545 times by 434 tests: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
130545
1137 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 0);
executed 130545 times by 434 tests: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 0);
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
130545
1138}-
1139-
1140const void *sqlite3_column_name16(sqlite3_stmt *pStmt, int N){-
1141 return
executed 94 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 0);
Executed by:
  • Self test (438)
columnName(
executed 94 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 0);
Executed by:
  • Self test (438)
94
1142 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 0);
executed 94 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 0);
Executed by:
  • Self test (438)
94
1143}-
1144const char *sqlite3_column_decltype(sqlite3_stmt *pStmt, int N){-
1145 return
executed 150 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 1);
Executed by:
  • Self test (438)
columnName(
executed 150 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 1);
Executed by:
  • Self test (438)
150
1146 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 1);
executed 150 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text, 1);
Executed by:
  • Self test (438)
150
1147}-
1148-
1149const void *sqlite3_column_decltype16(sqlite3_stmt *pStmt, int N){-
1150 return
executed 59 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 1);
Executed by:
  • Self test (438)
columnName(
executed 59 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 1);
Executed by:
  • Self test (438)
59
1151 pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 1);
executed 59 times by 1 test: return columnName( pStmt, N, (const void*(*)(Mem*))sqlite3_value_text16, 1);
Executed by:
  • Self test (438)
59
1152}-
1153static int vdbeUnbind(Vdbe *p, int i){-
1154 Mem *pVar;-
1155 if( vdbeSafetyNotNull(p)
vdbeSafetyNotNull(p)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 671924 times by 1 test
Evaluated by:
  • Self test (438)
){
2-671924
1156 return
executed 2 times by 1 test: return sqlite3MisuseError(1266);
Executed by:
  • Self test (438)
sqlite3MisuseError(1266);
executed 2 times by 1 test: return sqlite3MisuseError(1266);
Executed by:
  • Self test (438)
2
1157 }-
1158 sqlite3_mutex_enter(p->db->mutex);-
1159 if( p->magic!=0x2df20da3
p->magic!=0x2df20da3Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 671923 times by 1 test
Evaluated by:
  • Self test (438)
|| p->pc>=0
p->pc>=0Description
TRUEnever evaluated
FALSEevaluated 671923 times by 1 test
Evaluated by:
  • Self test (438)
){
0-671923
1160 sqlite3Error(p->db, 21);-
1161 sqlite3_mutex_leave(p->db->mutex);-
1162 sqlite3_log(21,-
1163 "bind on a busy prepared statement: [%s]", p->zSql);-
1164 return
executed 1 time by 1 test: return sqlite3MisuseError(1274);
Executed by:
  • Self test (438)
sqlite3MisuseError(1274);
executed 1 time by 1 test: return sqlite3MisuseError(1274);
Executed by:
  • Self test (438)
1
1165 }-
1166 if( i<1
i<1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 671918 times by 1 test
Evaluated by:
  • Self test (438)
|| i>p->nVar
i>p->nVarDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 671913 times by 1 test
Evaluated by:
  • Self test (438)
){
5-671918
1167 sqlite3Error(p->db, 25);-
1168 sqlite3_mutex_leave(p->db->mutex);-
1169 return
executed 10 times by 1 test: return 25;
Executed by:
  • Self test (438)
25;
executed 10 times by 1 test: return 25;
Executed by:
  • Self test (438)
10
1170 }-
1171 i--;-
1172 pVar = &p->aVar[i];-
1173 sqlite3VdbeMemRelease(pVar);-
1174 pVar->flags = 0x0001;-
1175 sqlite3Error(p->db, 0);-
1176 -
1177 ((void) (0))-
1178 ;-
1179 if( p->expmask!=0
p->expmask!=0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 671893 times by 1 test
Evaluated by:
  • Self test (438)
&& (
(p->expmask & ...(u32)1<<i))!=0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
p->expmask & (i>=31 ? 0x80000000 : (u32)1<<i))!=0
(p->expmask & ...(u32)1<<i))!=0Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-671893
1180 p->expired = 1;-
1181 }
executed 20 times by 1 test: end of block
Executed by:
  • Self test (438)
20
1182 return
executed 671913 times by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 671913 times by 1 test: return 0;
Executed by:
  • Self test (438)
671913
1183}-
1184-
1185-
1186-
1187-
1188static int bindText(-
1189 sqlite3_stmt *pStmt,-
1190 int i,-
1191 const void *zData,-
1192 int nData,-
1193 void (*xDel)(void*),-
1194 u8 encoding-
1195){-
1196 Vdbe *p = (Vdbe *)pStmt;-
1197 Mem *pVar;-
1198 int rc;-
1199-
1200 rc = vdbeUnbind(p, i);-
1201 if( rc==0
rc==0Description
TRUEevaluated 51287 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
){
6-51287
1202 if( zData!=0
zData!=0Description
TRUEevaluated 42748 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 8539 times by 1 test
Evaluated by:
  • Self test (438)
){
8539-42748
1203 pVar = &p->aVar[i-1];-
1204 rc = sqlite3VdbeMemSetStr(pVar, zData, nData, encoding, xDel);-
1205 if( rc==0
rc==0Description
TRUEevaluated 42748 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& encoding!=0
encoding!=0Description
TRUEevaluated 42714 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 34 times by 1 test
Evaluated by:
  • Self test (438)
){
0-42748
1206 rc = sqlite3VdbeChangeEncoding(pVar, ((p->db)->enc));-
1207 }
executed 42714 times by 1 test: end of block
Executed by:
  • Self test (438)
42714
1208 if( rc
rcDescription
TRUEnever evaluated
FALSEevaluated 42748 times by 1 test
Evaluated by:
  • Self test (438)
){
0-42748
1209 sqlite3Error(p->db, rc);-
1210 rc = sqlite3ApiExit(p->db, rc);-
1211 }
never executed: end of block
0
1212 }
executed 42748 times by 1 test: end of block
Executed by:
  • Self test (438)
42748
1213 sqlite3_mutex_leave(p->db->mutex);-
1214 }
executed 51287 times by 1 test: end of block
Executed by:
  • Self test (438)
else if( xDel!=((sqlite3_destructor_type)0)
xDel!=((sqlite...ructor_type)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
&& xDel!=((sqlite3_destructor_type)-1)
xDel!=((sqlite...uctor_type)-1)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
){
0-51287
1215 xDel((void*)zData);-
1216 }
never executed: end of block
0
1217 return
executed 51293 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 51293 times by 1 test: return rc;
Executed by:
  • Self test (438)
51293
1218}-
1219-
1220-
1221-
1222-
1223-
1224int sqlite3_bind_blob(-
1225 sqlite3_stmt *pStmt,-
1226 int i,-
1227 const void *zData,-
1228 int nData,-
1229 void (*xDel)(void*)-
1230){-
1231-
1232-
1233-
1234 return
executed 36 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 0);
Executed by:
  • Self test (438)
bindText(pStmt, i, zData, nData, xDel, 0);
executed 36 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 0);
Executed by:
  • Self test (438)
36
1235}-
1236int sqlite3_bind_blob64(-
1237 sqlite3_stmt *pStmt,-
1238 int i,-
1239 const void *zData,-
1240 sqlite3_uint64 nData,-
1241 void (*xDel)(void*)-
1242){-
1243 -
1244 ((void) (0))-
1245 ;-
1246 if( nData>0x7fffffff
nData>0x7fffffffDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
1247 return
never executed: return invokeValueDestructor(zData, xDel, 0);
invokeValueDestructor(zData, xDel, 0);
never executed: return invokeValueDestructor(zData, xDel, 0);
0
1248 }else{-
1249 return
never executed: return bindText(pStmt, i, zData, (int)nData, xDel, 0);
bindText(pStmt, i, zData, (int)nData, xDel, 0);
never executed: return bindText(pStmt, i, zData, (int)nData, xDel, 0);
0
1250 }-
1251}-
1252int sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue){-
1253 int rc;-
1254 Vdbe *p = (Vdbe *)pStmt;-
1255 rc = vdbeUnbind(p, i);-
1256 if( rc==0
rc==0Description
TRUEevaluated 42030 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-42030
1257 sqlite3VdbeMemSetDouble(&p->aVar[i-1], rValue);-
1258 sqlite3_mutex_leave(p->db->mutex);-
1259 }
executed 42030 times by 1 test: end of block
Executed by:
  • Self test (438)
42030
1260 return
executed 42032 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 42032 times by 1 test: return rc;
Executed by:
  • Self test (438)
42032
1261}-
1262int sqlite3_bind_int(sqlite3_stmt *p, int i, int iValue){-
1263 return
executed 987 times by 1 test: return sqlite3_bind_int64(p, i, (i64)iValue);
Executed by:
  • Self test (438)
sqlite3_bind_int64(p, i, (i64)iValue);
executed 987 times by 1 test: return sqlite3_bind_int64(p, i, (i64)iValue);
Executed by:
  • Self test (438)
987
1264}-
1265int sqlite3_bind_int64(sqlite3_stmt *pStmt, int i, sqlite_int64 iValue){-
1266 int rc;-
1267 Vdbe *p = (Vdbe *)pStmt;-
1268 rc = vdbeUnbind(p, i);-
1269 if( rc==0
rc==0Description
TRUEevaluated 578374 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
){
3-578374
1270 sqlite3VdbeMemSetInt64(&p->aVar[i-1], iValue);-
1271 sqlite3_mutex_leave(p->db->mutex);-
1272 }
executed 578374 times by 1 test: end of block
Executed by:
  • Self test (438)
578374
1273 return
executed 578377 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 578377 times by 1 test: return rc;
Executed by:
  • Self test (438)
578377
1274}-
1275int sqlite3_bind_null(sqlite3_stmt *pStmt, int i){-
1276 int rc;-
1277 Vdbe *p = (Vdbe*)pStmt;-
1278 rc = vdbeUnbind(p, i);-
1279 if( rc==0
rc==0Description
TRUEevaluated 216 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test (438)
){
2-216
1280 sqlite3_mutex_leave(p->db->mutex);-
1281 }
executed 216 times by 1 test: end of block
Executed by:
  • Self test (438)
216
1282 return
executed 218 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 218 times by 1 test: return rc;
Executed by:
  • Self test (438)
218
1283}-
1284int sqlite3_bind_pointer(-
1285 sqlite3_stmt *pStmt,-
1286 int i,-
1287 void *pPtr,-
1288 const char *zPTtype,-
1289 void (*xDestructor)(void*)-
1290){-
1291 int rc;-
1292 Vdbe *p = (Vdbe*)pStmt;-
1293 rc = vdbeUnbind(p, i);-
1294 if( rc==0
rc==0Description
TRUEnever evaluated
FALSEnever evaluated
){
0
1295 sqlite3VdbeMemSetPointer(&p->aVar[i-1], pPtr, zPTtype, xDestructor);-
1296 sqlite3_mutex_leave(p->db->mutex);-
1297 }
never executed: end of block
else if( xDestructor
xDestructorDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
1298 xDestructor(pPtr);-
1299 }
never executed: end of block
0
1300 return
never executed: return rc;
rc;
never executed: return rc;
0
1301}-
1302int sqlite3_bind_text(-
1303 sqlite3_stmt *pStmt,-
1304 int i,-
1305 const char *zData,-
1306 int nData,-
1307 void (*xDel)(void*)-
1308){-
1309 return
executed 50480 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 1);
Executed by:
  • Self test (438)
bindText(pStmt, i, zData, nData, xDel, 1);
executed 50480 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 1);
Executed by:
  • Self test (438)
50480
1310}-
1311int sqlite3_bind_text64(-
1312 sqlite3_stmt *pStmt,-
1313 int i,-
1314 const char *zData,-
1315 sqlite3_uint64 nData,-
1316 void (*xDel)(void*),-
1317 unsigned char enc-
1318){-
1319 -
1320 ((void) (0))-
1321 ;-
1322 if( nData>0x7fffffff
nData>0x7fffffffDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
1323 return
never executed: return invokeValueDestructor(zData, xDel, 0);
invokeValueDestructor(zData, xDel, 0);
never executed: return invokeValueDestructor(zData, xDel, 0);
0
1324 }else{-
1325 if( enc==4
enc==4Description
TRUEnever evaluated
FALSEnever evaluated
) enc = 2;
never executed: enc = 2;
0
1326 return
never executed: return bindText(pStmt, i, zData, (int)nData, xDel, enc);
bindText(pStmt, i, zData, (int)nData, xDel, enc);
never executed: return bindText(pStmt, i, zData, (int)nData, xDel, enc);
0
1327 }-
1328}-
1329-
1330int sqlite3_bind_text16(-
1331 sqlite3_stmt *pStmt,-
1332 int i,-
1333 const void *zData,-
1334 int nData,-
1335 void (*xDel)(void*)-
1336){-
1337 return
executed 548 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 2);
Executed by:
  • Self test (438)
bindText(pStmt, i, zData, nData, xDel, 2);
executed 548 times by 1 test: return bindText(pStmt, i, zData, nData, xDel, 2);
Executed by:
  • Self test (438)
548
1338}-
1339-
1340int sqlite3_bind_value(sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue){-
1341 int rc;-
1342 switch( sqlite3_value_type((sqlite3_value*)pValue) ){-
1343 case
executed 1815 times by 1 test: case 1:
Executed by:
  • Self test (438)
1:
executed 1815 times by 1 test: case 1:
Executed by:
  • Self test (438)
{
1815
1344 rc = sqlite3_bind_int64(pStmt, i, pValue->u.i);-
1345 break;
executed 1815 times by 1 test: break;
Executed by:
  • Self test (438)
1815
1346 }-
1347 case
executed 1 time by 1 test: case 2:
Executed by:
  • Self test (438)
2:
executed 1 time by 1 test: case 2:
Executed by:
  • Self test (438)
{
1
1348 rc = sqlite3_bind_double(pStmt, i, pValue->u.r);-
1349 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1350 }-
1351 case
executed 1 time by 1 test: case 4:
Executed by:
  • Self test (438)
4:
executed 1 time by 1 test: case 4:
Executed by:
  • Self test (438)
{
1
1352 if( pValue->flags & 0x4000
pValue->flags & 0x4000Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
0-1
1353 rc = sqlite3_bind_zeroblob(pStmt, i, pValue->u.nZero);-
1354 }
never executed: end of block
else{
0
1355 rc = sqlite3_bind_blob(pStmt, i, pValue->z, pValue->n,((sqlite3_destructor_type)-1));-
1356 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
1
1357 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test (438)
1
1358 }-
1359 case
executed 229 times by 1 test: case 3:
Executed by:
  • Self test (438)
3:
executed 229 times by 1 test: case 3:
Executed by:
  • Self test (438)
{
229
1360 rc = bindText(pStmt,i, pValue->z, pValue->n, ((sqlite3_destructor_type)-1),-
1361 pValue->enc);-
1362 break;
executed 229 times by 1 test: break;
Executed by:
  • Self test (438)
229
1363 }-
1364 default
executed 156 times by 1 test: default:
Executed by:
  • Self test (438)
:
executed 156 times by 1 test: default:
Executed by:
  • Self test (438)
{
156
1365 rc = sqlite3_bind_null(pStmt, i);-
1366 break;
executed 156 times by 1 test: break;
Executed by:
  • Self test (438)
156
1367 }-
1368 }-
1369 return
executed 2202 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 2202 times by 1 test: return rc;
Executed by:
  • Self test (438)
2202
1370}-
1371int sqlite3_bind_zeroblob(sqlite3_stmt *pStmt, int i, int n){-
1372 int rc;-
1373 Vdbe *p = (Vdbe *)pStmt;-
1374 rc = vdbeUnbind(p, i);-
1375 if( rc==0
rc==0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test (438)
FALSEnever evaluated
){
0-6
1376 sqlite3VdbeMemSetZeroBlob(&p->aVar[i-1], n);-
1377 sqlite3_mutex_leave(p->db->mutex);-
1378 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test (438)
6
1379 return
executed 6 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 6 times by 1 test: return rc;
Executed by:
  • Self test (438)
6
1380}-
1381int sqlite3_bind_zeroblob64(sqlite3_stmt *pStmt, int i, sqlite3_uint64 n){-
1382 int rc;-
1383 Vdbe *p = (Vdbe *)pStmt;-
1384 sqlite3_mutex_enter(p->db->mutex);-
1385 if( n>(u64)p->db->aLimit[0]
n>(u64)p->db->aLimit[0]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test (438)
){
1-3
1386 rc = 18;-
1387 }
executed 1 time by 1 test: end of block
Executed by:
  • Self test (438)
else{
1
1388 -
1389 ((void) (0))-
1390 ;-
1391 rc = sqlite3_bind_zeroblob(pStmt, i, n);-
1392 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test (438)
3
1393 rc = sqlite3ApiExit(p->db, rc);-
1394 sqlite3_mutex_leave(p->db->mutex);-
1395 return
executed 4 times by 1 test: return rc;
Executed by:
  • Self test (438)
rc;
executed 4 times by 1 test: return rc;
Executed by:
  • Self test (438)
4
1396}-
1397-
1398-
1399-
1400-
1401-
1402int sqlite3_bind_parameter_count(sqlite3_stmt *pStmt){-
1403 Vdbe *p = (Vdbe*)pStmt;-
1404 return
executed 885800 times by 435 tests: return p ? p->nVar : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
p
pDescription
TRUEevaluated 885800 times by 435 tests
Evaluated by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
FALSEnever evaluated
? p->nVar : 0;
executed 885800 times by 435 tests: return p ? p->nVar : 0;
Executed by:
  • Self test
  • Self test (10)
  • Self test (100)
  • Self test (101)
  • Self test (103)
  • Self test (104)
  • Self test (105)
  • Self test (106)
  • Self test (107)
  • Self test (108)
  • Self test (109)
  • Self test (11)
  • Self test (110)
  • Self test (111)
  • Self test (112)
  • Self test (113)
  • Self test (114)
  • Self test (115)
  • Self test (116)
  • Self test (117)
  • Self test (118)
  • Self test (119)
  • Self test (12)
  • Self test (120)
  • Self test (121)
  • ...
0-885800
1405}-
1406-
1407-
1408-
1409-
1410-
1411-
1412-
1413const char *sqlite3_bind_parameter_name(sqlite3_stmt *pStmt, int i){-
1414 Vdbe *p = (Vdbe*)pStmt;-
1415 if( p==0
p==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 517559 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
1-517559
1416 return
executed 517559 times by 1 test: return sqlite3VListNumToName(p->pVList, i);
Executed by:
  • Self test (438)
sqlite3VListNumToName(p->pVList, i);
executed 517559 times by 1 test: return sqlite3VListNumToName(p->pVList, i);
Executed by:
  • Self test (438)
517559
1417}-
1418-
1419-
1420-
1421-
1422-
1423-
1424int sqlite3VdbeParameterIndex(Vdbe *p, const char *zName, int nName){-
1425 if( p==0
p==0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test (438)
|| zName==0
zName==0Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test (438)
) return
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
0;
executed 1 time by 1 test: return 0;
Executed by:
  • Self test (438)
0-30
1426 return
executed 30 times by 1 test: return sqlite3VListNameToNum(p->pVList, zName, nName);
Executed by:
  • Self test (438)
sqlite3VListNameToNum(p->pVList, zName, nName);
executed 30 times by 1 test: return sqlite3VListNameToNum(p->pVList, zName, nName);
Executed by:
  • Self test (438)
30
1427}-
1428int sqlite3_bind_parameter_index(sqlite3_stmt *pStmt, const char *zName){-
1429 return
executed 16 times by 1 test: return sqlite3VdbeParameterIndex((Vdbe*)pStmt, zName, sqlite3Strlen30(zName));
Executed by:
  • Self test (438)
sqlite3VdbeParameterIndex((Vdbe*)pStmt, zName, sqlite3Strlen30(zName));
executed 16 times by 1 test: return sqlite3VdbeParameterIndex((Vdbe*)pStmt, zName, sqlite3Strlen30(zName));
Executed by:
  • Self test (438)
16
1430}-
1431-
1432-
1433-
1434-
1435int sqlite3TransferBindings(sqlite3_stmt *pFromStmt, sqlite3_stmt *pToStmt){-
1436 Vdbe *pFrom = (Vdbe*)pFromStmt;-
1437 Vdbe *pTo = (Vdbe*)pToStmt;-
1438 int i;-
1439 -
1440 ((void) (0))-
1441 ;-
1442 -
1443 ((void) (0))-
1444 ;-
1445 sqlite3_mutex_enter(pTo->db->mutex);-
1446 for(i=0; i<pFrom->nVar
i<pFrom->nVarDescription
TRUEevaluated 84 times by 1 test
Evaluated by:
  • Self test (438)
FALSEevaluated 23595 times by 11 tests
Evaluated by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
; i++){
84-23595
1447 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);-
1448 }
executed 84 times by 1 test: end of block
Executed by:
  • Self test (438)
84
1449 sqlite3_mutex_leave(pTo->db->mutex);-
1450 return
executed 23595 times by 11 tests: return 0;
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
0;
executed 23595 times by 11 tests: return 0;
Executed by:
  • Self test (24)
  • Self test (26)
  • Self test (27)
  • Self test (28)
  • Self test (29)
  • Self test (30)
  • Self test (34)
  • Self test (438)
  • Self test (47)
  • Self test (53)
  • Self test (84)
23595
1451}-
1452int sqlite3_transfer_bindings(sqlite3_stmt *pFromStmt, sqlite3_stmt *pToStmt){-
1453 Vdbe *pFrom = (Vdbe*)pFromStmt;-
1454 Vdbe *pTo = (Vdbe*)pToStmt;-
1455 if( pFrom->nVar!=pTo->nVar
pFrom->nVar!=pTo->nVarDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
0-1
1456 return
never executed: return 1;
1;
never executed: return 1;
0
1457 }-
1458 -
1459 ((void) (0))-
1460 ;-
1461 if( pTo->expmask
pTo->expmaskDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
0-1
1462 pTo->expired = 1;-
1463 }
never executed: end of block
0
1464 -
1465 ((void) (0))-
1466 ;-
1467 if( pFrom->expmask
pFrom->expmaskDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test (438)
){
0-1
1468 pFrom->expired = 1;-
1469 }
never executed: end of block
0
1470 return
executed 1 time by 1 test: return sqlite3TransferBindings(pFromStmt, pToStmt);
Executed by:
  • Self test (438)
sqlite3TransferBindings(pFromStmt, pToStmt);
executed 1 time by 1 test: return sqlite3TransferBindings(pFromStmt, pToStmt);
Executed by:
  • Self test (438)
1
1471}-
1472sqlite3 *sqlite3_db_handle(sqlite3_stmt *pStmt){-
1473 return
executed 17192 times by 2 tests: return pStmt ? ((Vdbe*)pStmt)->db : 0;
Executed by:
  • Self test (438)
  • Self test (63)
pStmt
pStmtDescription
TRUEevaluated 17170 times by 2 tests
Evaluated by:
  • Self test (438)
  • Self test (63)
FALSEevaluated 22 times by 1 test
Evaluated by:
  • Self test (438)
? ((Vdbe*)pStmt)->db : 0;
executed 17192 times by 2 tests: return pStmt ? ((Vdbe*)pStmt)->db : 0;
Executed by:
  • Self test (438)
  • Self test (63)
22-17192
1474}-
1475-
1476-
1477-
1478-
1479-
1480int sqlite3_stmt_readonly(sqlite3_stmt *pStmt){-
1481 return
executed 24 times by 1 test: return pStmt ? ((Vdbe*)pStmt)->readOnly : 1;
Executed by:
  • Self test (438)
pStmt
pStmtDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test