line |
true |
false |
branch |
159
|
21 |
2334 |
if( needInit ){ |
162
|
21 |
0 |
if( needInit ){ |
165
|
2100 |
21 |
for(i=0; i
|
177
|
2333 |
1408 |
for(i=aiHashTable[h]; i; i=p->iNext){ |
179
|
1253 |
1080 |
if( p->len==n && sqliteStrNICmp(p->zName, z, n)==0 ){ |
|
947 |
306 |
if( p->len==n && sqliteStrNICmp(p->zName, z, n)==0 ){ |
222
|
893 |
2410 |
for(i=1; isspace(z[i]); i++){} |
227
|
0 |
0 |
if( z[1]=='-' ){ |
228
|
0 |
0 |
for(i=2; z[i] && z[i]!='\n'; i++){} |
|
0 |
0 |
for(i=2; z[i] && z[i]!='\n'; i++){} |
256
|
0 |
0 |
if( z[1]!='*' || z[2]==0 ){ |
|
0 |
0 |
if( z[1]!='*' || z[2]==0 ){ |
260
|
0 |
0 |
for(i=3; z[i] && (z[i]!='/' || z[i-1]!='*'); i++){} |
|
0 |
0 |
for(i=3; z[i] && (z[i]!='/' || z[i-1]!='*'); i++){} |
|
0 |
0 |
for(i=3; z[i] && (z[i]!='/' || z[i-1]!='*'); i++){} |
261
|
0 |
0 |
if( z[i] ) i++; |
271
|
0 |
71 |
return 1 + (z[1]=='='); |
274
|
0 |
0 |
if( z[1]=='=' ){ |
277
|
0 |
0 |
}else if( z[1]=='>' ){ |
280
|
0 |
0 |
}else if( z[1]=='<' ){ |
289
|
2 |
0 |
if( z[1]=='=' ){ |
292
|
0 |
0 |
}else if( z[1]=='>' ){ |
301
|
0 |
0 |
if( z[1]!='=' ){ |
310
|
0 |
0 |
if( z[1]!='|' ){ |
332
|
34021 |
0 |
for(i=1; z[i]; i++){ |
333
|
271 |
33750 |
if( z[i]==delim ){ |
334
|
128 |
143 |
if( z[i+1]==delim ){ |
341
|
143 |
0 |
if( z[i] ) i++; |
352
|
19 |
144 |
for(i=1; isdigit(z[i]); i++){} |
353
|
1 |
143 |
if( z[i]=='.' && isdigit(z[i+1]) ){ |
|
1 |
0 |
if( z[i]=='.' && isdigit(z[i+1]) ){ |
355
|
0 |
1 |
while( isdigit(z[i]) ){ i++; } |
358
|
144 |
0 |
if( (z[i]=='e' || z[i]=='E') && |
360
|
0 |
0 |
|| ((z[i+1]=='+' || z[i+1]=='-') && isdigit(z[i+2])) |
|
0 |
0 |
|| ((z[i+1]=='+' || z[i+1]=='-') && isdigit(z[i+2])) |
|
0 |
0 |
|| ((z[i+1]=='+' || z[i+1]=='-') && isdigit(z[i+2])) |
364
|
0 |
0 |
while( isdigit(z[i]) ){ i++; } |
370
|
0 |
0 |
for(i=1; z[i] && z[i-1]!=']'; i++){} |
|
0 |
0 |
for(i=1; z[i] && z[i-1]!=']'; i++){} |
379
|
2355 |
0 |
if( (*z&0x80)==0 && !isIdChar[*z] ){ |
|
0 |
2355 |
if( (*z&0x80)==0 && !isIdChar[*z] ){ |
382
|
0 |
13650 |
for(i=1; (z[i]&0x80)!=0 || isIdChar[z[i]]; i++){} |
|
11295 |
2355 |
for(i=1; (z[i]&0x80)!=0 || isIdChar[z[i]]; i++){} |
413
|
0 |
349 |
if( pEngine==0 ){ |
419
|
6596 |
0 |
while( sqlite_malloc_failed==0 && zSql[i]!=0 ){ |
|
6249 |
347 |
while( sqlite_malloc_failed==0 && zSql[i]!=0 ){ |
428
|
0 |
2410 |
if( (db->flags & SQLITE_Interrupt)!=0 ){ |
448
|
2 |
3837 |
if( pParse->rc!=SQLITE_OK ){ |
456
|
349 |
0 |
if( zSql[i]==0 && nErr==0 && pParse->rc==SQLITE_OK ){ |
|
349 |
0 |
if( zSql[i]==0 && nErr==0 && pParse->rc==SQLITE_OK ){ |
|
347 |
2 |
if( zSql[i]==0 && nErr==0 && pParse->rc==SQLITE_OK ){ |
457
|
347 |
0 |
if( lastTokenParsed!=TK_SEMI ){ |
464
|
348 |
1 |
if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ |
|
6 |
342 |
if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ |
|
0 |
6 |
if( pParse->rc!=SQLITE_OK && pParse->rc!=SQLITE_DONE && pParse->zErrMsg==0 ){ |
468
|
7 |
342 |
if( pParse->zErrMsg ){ |
469
|
7 |
0 |
if( pzErrMsg && *pzErrMsg==0 ){ |
|
7 |
0 |
if( pzErrMsg && *pzErrMsg==0 ){ |
475
|
7 |
0 |
if( !nErr ) nErr++; |
477
|
348 |
1 |
if( pParse->pVdbe && pParse->nErr>0 ){ |
|
6 |
342 |
if( pParse->pVdbe && pParse->nErr>0 ){ |
481
|
0 |
349 |
if( pParse->pNewTable ){ |
485
|
0 |
349 |
if( pParse->pNewTrigger ){ |
489
|
7 |
342 |
if( nErr>0 && (pParse->rc==SQLITE_OK || pParse->rc==SQLITE_DONE) ){ |
|
6 |
1 |
if( nErr>0 && (pParse->rc==SQLITE_OK || pParse->rc==SQLITE_DONE) ){ |
|
0 |
6 |
if( nErr>0 && (pParse->rc==SQLITE_OK || pParse->rc==SQLITE_DONE) ){ |
574
|
0 |
0 |
while( *zSql ){ |
589
|
0 |
0 |
if( zSql[1]!='*' ){ |
594
|
0 |
0 |
while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++; } |
|
0 |
0 |
while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++; } |
|
0 |
0 |
while( zSql[0] && (zSql[0]!='*' || zSql[1]!='/') ){ zSql++; } |
595
|
0 |
0 |
if( zSql[0]==0 ) return 0; |
601
|
0 |
0 |
if( zSql[1]!='-' ){ |
605
|
0 |
0 |
while( *zSql && *zSql!='\n' ){ zSql++; } |
|
0 |
0 |
while( *zSql && *zSql!='\n' ){ zSql++; } |
606
|
0 |
0 |
if( *zSql==0 ) return state==0; |
612
|
0 |
0 |
while( *zSql && *zSql!=']' ){ zSql++; } |
|
0 |
0 |
while( *zSql && *zSql!=']' ){ zSql++; } |
613
|
0 |
0 |
if( *zSql==0 ) return 0; |
621
|
0 |
0 |
while( *zSql && *zSql!=c ){ zSql++; } |
|
0 |
0 |
while( *zSql && *zSql!=c ){ zSql++; } |
622
|
0 |
0 |
if( *zSql==0 ) return 0; |
627
|
0 |
0 |
if( isIdChar[(u8)*zSql] ){ |
630
|
0 |
0 |
for(nId=1; isIdChar[(u8)zSql[nId]]; nId++){} |
633
|
0 |
0 |
if( nId==6 && sqliteStrNICmp(zSql, "create", 6)==0 ){ |
|
0 |
0 |
if( nId==6 && sqliteStrNICmp(zSql, "create", 6)==0 ){ |
641
|
0 |
0 |
if( nId==7 && sqliteStrNICmp(zSql, "trigger", 7)==0 ){ |
|
0 |
0 |
if( nId==7 && sqliteStrNICmp(zSql, "trigger", 7)==0 ){ |
643
|
0 |
0 |
}else if( nId==4 && sqliteStrNICmp(zSql, "temp", 4)==0 ){ |
|
0 |
0 |
}else if( nId==4 && sqliteStrNICmp(zSql, "temp", 4)==0 ){ |
645
|
0 |
0 |
}else if( nId==9 && sqliteStrNICmp(zSql, "temporary", 9)==0 ){ |
|
0 |
0 |
}else if( nId==9 && sqliteStrNICmp(zSql, "temporary", 9)==0 ){ |
653
|
0 |
0 |
if( nId==3 && sqliteStrNICmp(zSql, "end", 3)==0 ){ |
|
0 |
0 |
if( nId==3 && sqliteStrNICmp(zSql, "end", 3)==0 ){ |
655
|
0 |
0 |
}else if( nId==7 && sqliteStrNICmp(zSql, "explain", 7)==0 ){ |
|
0 |
0 |
}else if( nId==7 && sqliteStrNICmp(zSql, "explain", 7)==0 ){ |