line |
true |
false |
branch |
35
|
0 |
0 |
if( pParse->explain ) return; |
37
|
0 |
0 |
if( db->file_format<4 ){ |
43
|
0 |
0 |
if( db->nDb>=MAX_ATTACHED+2 ){ |
52
|
0 |
0 |
if( zFile==0 ) return; |
55
|
0 |
0 |
if( sqliteAuthCheck(pParse, SQLITE_ATTACH, zFile, 0, 0)!=SQLITE_OK ){ |
63
|
0 |
0 |
if( zName==0 ) return; |
65
|
0 |
0 |
for(i=0; inDb; i++){ |
66
|
0 |
0 |
if( db->aDb[i].zName && sqliteStrICmp(db->aDb[i].zName, zName)==0 ){ |
|
0 |
0 |
if( db->aDb[i].zName && sqliteStrICmp(db->aDb[i].zName, zName)==0 ){ |
74
|
0 |
0 |
if( db->aDb==db->aDbStatic ){ |
76
|
0 |
0 |
if( aNew==0 ) return; |
80
|
0 |
0 |
if( aNew==0 ) return; |
91
|
0 |
0 |
if( rc ){ |
112
|
0 |
0 |
if( pParse->nErr ) return; |
113
|
0 |
0 |
if( rc==SQLITE_OK ){ |
116
|
0 |
0 |
if( rc ){ |
119
|
0 |
0 |
if( db->aDb[i].pBt ){ |
144
|
0 |
0 |
if( pParse->explain ) return; |
146
|
0 |
0 |
for(i=0; inDb; i++){ |
148
|
0 |
0 |
if( pDb->pBt==0 || pDb->zName==0 ) continue; |
|
0 |
0 |
if( pDb->pBt==0 || pDb->zName==0 ) continue; |
149
|
0 |
0 |
if( strlen(pDb->zName)!=pDbname->n ) continue; |
150
|
0 |
0 |
if( sqliteStrNICmp(pDb->zName, pDbname->z, pDbname->n)==0 ) break; |
152
|
0 |
0 |
if( i>=db->nDb ){ |
156
|
0 |
0 |
if( i<2 ){ |
161
|
0 |
0 |
if( sqliteAuthCheck(pParse,SQLITE_DETACH,db->aDb[i].zName,0,0)!=SQLITE_OK ){ |
169
|
0 |
0 |
if( pDb->pAux && pDb->xFreeAux ) pDb->xFreeAux(pDb->pAux); |
|
0 |
0 |
if( pDb->pAux && pDb->xFreeAux ) pDb->xFreeAux(pDb->pAux); |
171
|
0 |
0 |
if( inDb ){ |
194
|
3 |
0 |
if( iDb<0 || iDb==1 ) return 0; |
|
0 |
3 |
if( iDb<0 || iDb==1 ) return 0; |
225
|
0 |
3 |
if( pList==0 ) return 0; |
227
|
3 |
3 |
for(i=0; inSrc; i++){ |
228
|
3 |
0 |
if( pList->a[i].zDatabase==0 ){ |
230
|
0 |
0 |
}else if( sqliteStrICmp(pList->a[i].zDatabase,zDb)!=0 ){ |
237
|
0 |
3 |
if( sqliteFixSelect(pFix, pList->a[i].pSelect) ) return 1; |
238
|
0 |
3 |
if( sqliteFixExpr(pFix, pList->a[i].pOn) ) return 1; |
246
|
0 |
3 |
while( pSelect ){ |
247
|
0 |
0 |
if( sqliteFixExprList(pFix, pSelect->pEList) ){ |
250
|
0 |
0 |
if( sqliteFixSrcList(pFix, pSelect->pSrc) ){ |
253
|
0 |
0 |
if( sqliteFixExpr(pFix, pSelect->pWhere) ){ |
256
|
0 |
0 |
if( sqliteFixExpr(pFix, pSelect->pHaving) ){ |
267
|
0 |
3 |
while( pExpr ){ |
268
|
0 |
0 |
if( sqliteFixSelect(pFix, pExpr->pSelect) ){ |
271
|
0 |
0 |
if( sqliteFixExprList(pFix, pExpr->pList) ){ |
274
|
0 |
0 |
if( sqliteFixExpr(pFix, pExpr->pRight) ){ |
286
|
0 |
0 |
if( pList==0 ) return 0; |
287
|
0 |
0 |
for(i=0; inExpr; i++){ |
288
|
0 |
0 |
if( sqliteFixExpr(pFix, pList->a[i].pExpr) ){ |
298
|
0 |
0 |
while( pStep ){ |
299
|
0 |
0 |
if( sqliteFixSelect(pFix, pStep->pSelect) ){ |
302
|
0 |
0 |
if( sqliteFixExpr(pFix, pStep->pWhere) ){ |
305
|
0 |
0 |
if( sqliteFixExprList(pFix, pStep->pExprList) ){ |