Skip to content

Commit

Permalink
Remove an unreachable branch in the FK code.
Browse files Browse the repository at this point in the history
  • Loading branch information
D. Richard Hipp committed Aug 22, 2011
1 parent 8cd9789 commit b599507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ void sqlite3FkCheck(
if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
assert( isIgnoreErrors==0 || (regOld!=0 && regNew==0) );
if( !isIgnoreErrors || db->mallocFailed ) return;
if( isIgnoreErrors && pTo==0 ){
if( pTo==0 ){
/* If isIgnoreErrors is true, then a table is being dropped. In this
** case SQLite runs a "DELETE FROM xxx" on the table being dropped
** before actually dropping it in order to check FK constraints.
Expand Down

0 comments on commit b599507

Please sign in to comment.