aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-12-29 13:35:09 +0000
committerdrh <drh@noemail.net>2017-12-29 13:35:09 +0000
commit7a8573bafaba8b341ec033a0ecc810afeceda94e (patch)
tree67a72353c4313c2cadb24a46a54af0cf87104317 /src/wherecode.c
parent2fc865c1153d739208657ea652f74426bf20f678 (diff)
parentee052a1c941920dab3fab38785fbf03237677b7a (diff)
downloadsqlite-7a8573bafaba8b341ec033a0ecc810afeceda94e.tar.gz
sqlite-7a8573bafaba8b341ec033a0ecc810afeceda94e.zip
Merge recent enhancements from trunk.
FossilOrigin-Name: 6251e438f2a76170fd1e95aa512a46086ed88ab93b9b97a1dba97c4558689305
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 3c166a121..32dd2048b 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -128,7 +128,7 @@ int sqlite3WhereExplainOneScan(
){
int ret = 0;
#if !defined(SQLITE_DEBUG) && !defined(SQLITE_ENABLE_STMT_SCANSTATUS)
- if( pParse->explain==2 )
+ if( sqlite3ParseToplevel(pParse)->explain==2 )
#endif
{
struct SrcList_item *pItem = &pTabList->a[pLevel->iFrom];