/ Check-in [e526d0c4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure the bComplex variable in sqlite3DeleteFrom() is initialized when compiling with -DSQLITE_OMIT_TRIGGER.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e526d0c40b971d970367a52a57d3920cb64e6a98920114bfac46ba009f0b1eb5
User & Date: drh 2017-12-08 14:07:14
Context
2017-12-08
16:23
Add compile time switch SQLITE_ENABLE_ICU_COLLATIONS. For enabling ICU collations without also enabling the tokenizer, the LIKE operator, the REGEXP operator, or the unicode aware upper()/lower() scalar functions. check-in: a079f914 user: dan tags: trunk
14:07
Make sure the bComplex variable in sqlite3DeleteFrom() is initialized when compiling with -DSQLITE_OMIT_TRIGGER. check-in: e526d0c4 user: drh tags: trunk
2017-12-07
22:10
When doing a table scan using an index, do not error out if collating functions used by that index are unavailable, since they will not be used. check-in: bbd69fa6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/delete.c.

   279    279   
   280    280     /* Figure out if we have any triggers and if the table being
   281    281     ** deleted from is a view
   282    282     */
   283    283   #ifndef SQLITE_OMIT_TRIGGER
   284    284     pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0);
   285    285     isView = pTab->pSelect!=0;
   286         -  bComplex = pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0);
   287    286   #else
   288    287   # define pTrigger 0
   289    288   # define isView 0
   290    289   #endif
          290  +  bComplex = pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0);
   291    291   #ifdef SQLITE_OMIT_VIEW
   292    292   # undef isView
   293    293   # define isView 0
   294    294   #endif
   295    295   
   296    296   #ifdef SQLITE_ENABLE_UPDATE_DELETE_LIMIT
   297    297     if( !isView ){