1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Suppress some harmless compiler warnings.

FossilOrigin-Name: 5d381daa6e5248ec171aa682e2dad058d4012f24
This commit is contained in:
drh
2009-10-13 13:08:19 +00:00
parent 4591c7bab5
commit d3ceeb50f3
4 changed files with 16 additions and 14 deletions

View File

@@ -498,8 +498,9 @@ static void fkScanChildren(
/* Set the collation sequence and affinity of the LHS of each TK_EQ
** expression to the parent key column defaults. */
if( pIdx ){
int iCol = pIdx->aiColumn[i];
Column *pCol = &pIdx->pTable->aCol[iCol];
Column *pCol;
iCol = pIdx->aiColumn[i];
pCol = &pIdx->pTable->aCol[iCol];
pLeft->iTable = regData+iCol+1;
pLeft->affinity = pCol->affinity;
pLeft->pColl = sqlite3LocateCollSeq(pParse, pCol->zColl);
@@ -957,7 +958,7 @@ static Trigger *fkActionTrigger(
int nFrom; /* Length in bytes of zFrom */
Index *pIdx = 0; /* Parent key index for this FK */
int *aiCol = 0; /* child table cols -> parent key cols */
TriggerStep *pStep; /* First (only) step of trigger program */
TriggerStep *pStep = 0; /* First (only) step of trigger program */
Expr *pWhere = 0; /* WHERE clause of trigger step */
ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */