Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove an unreachable branch in the FK code. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6c227cc85378fa6041703d6620031c0e |
User & Date: | drh 2011-08-22 20:33:12.500 |
Context
2011-08-23
| ||
00:01 | Remove a branch that is always true. (check-in: a65681926d user: drh tags: trunk) | |
2011-08-22
| ||
20:33 | Remove an unreachable branch in the FK code. (check-in: 6c227cc853 user: drh tags: trunk) | |
09:54 | Fix for [b1d3a2e531]. (check-in: 3f3acee465 user: dan tags: trunk) | |
Changes
Changes to src/fkey.c.
︙ | ︙ | |||
732 733 734 735 736 737 738 | pTo = sqlite3FindTable(db, pFKey->zTo, zDb); }else{ pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb); } if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){ assert( isIgnoreErrors==0 || (regOld!=0 && regNew==0) ); if( !isIgnoreErrors || db->mallocFailed ) return; | | | 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 | pTo = sqlite3FindTable(db, pFKey->zTo, zDb); }else{ pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb); } if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){ assert( isIgnoreErrors==0 || (regOld!=0 && regNew==0) ); if( !isIgnoreErrors || db->mallocFailed ) return; 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. ** If the parent table of an FK constraint on the current table is ** missing, behave as if it is empty. i.e. decrement the relevant ** FK counter for each row of the current table with non-NULL keys. */ |
︙ | ︙ |