/ Check-in [afbbfff7]
Login

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

Overview
Comment:Fix SQLITE_DBCONFIG_TRIGGER_EQP so that it works even if SQLITE_DEBUG is not defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: afbbfff72002089fa73b5473cc98360df14288d489e93e667332d6e884ef60da
User & Date: drh 2017-12-21 21:41:13
Context
2017-12-22
00:52
Modify the new sqlite3_vtab_collation() interface so that it takes a pointer to the sqlite3_index_info object passed into xBestIndex rather than an sqlite3 connection pointer, which the xBestIndex method might not have access to. check-in: 5c1fe666 user: drh tags: trunk
2017-12-21
21:41
Fix SQLITE_DBCONFIG_TRIGGER_EQP so that it works even if SQLITE_DEBUG is not defined. check-in: afbbfff7 user: drh tags: trunk
21:02
Add the ".eqp trigger" option to the ".eqp" command in the command-line shell. Implemented using the new SQLITE_DBCONFIG_TRIGGER_EQP control. check-in: 2c51644a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/wherecode.c.

   124    124     WhereLevel *pLevel,             /* Scan to write OP_Explain opcode for */
   125    125     int iLevel,                     /* Value for "level" column of output */
   126    126     int iFrom,                      /* Value for "from" column of output */
   127    127     u16 wctrlFlags                  /* Flags passed to sqlite3WhereBegin() */
   128    128   ){
   129    129     int ret = 0;
   130    130   #if !defined(SQLITE_DEBUG) && !defined(SQLITE_ENABLE_STMT_SCANSTATUS)
   131         -  if( pParse->explain==2 )
          131  +  if( sqlite3ParseToplevel(pParse)->explain==2 )
   132    132   #endif
   133    133     {
   134    134       struct SrcList_item *pItem = &pTabList->a[pLevel->iFrom];
   135    135       Vdbe *v = pParse->pVdbe;      /* VM being constructed */
   136    136       sqlite3 *db = pParse->db;     /* Database handle */
   137    137       int iId = pParse->iSelectId;  /* Select id (left-most output column) */
   138    138       int isSearch;                 /* True for a SEARCH. False for SCAN. */