aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-07-10 19:48:35 +0000
committerdrh <drh@noemail.net>2018-07-10 19:48:35 +0000
commitfef37760daab363c6ebb0092a540e8f685642bd9 (patch)
tree05ddf383a5042f0ec7aacb1b6761da7b479d0d3b /src/wherecode.c
parentfd908888d3eea74752e9c3ae483e7394e7833a43 (diff)
downloadsqlite-fef37760daab363c6ebb0092a540e8f685642bd9.tar.gz
sqlite-fef37760daab363c6ebb0092a540e8f685642bd9.zip
Identify Select objects within a single statement using small sequential
integers rather than "0x%p". This is more readable and yields the same result on successive runs. FossilOrigin-Name: a7cdc5bc85e0edfcc38f920c2ce91599bcbfdb49522d88b08c64596546d13881
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 67f5e3073..3bb220d2e 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -150,7 +150,7 @@ int sqlite3WhereExplainOneScan(
sqlite3StrAccumInit(&str, db, zBuf, sizeof(zBuf), SQLITE_MAX_LENGTH);
sqlite3_str_appendall(&str, isSearch ? "SEARCH" : "SCAN");
if( pItem->pSelect ){
- sqlite3_str_appendf(&str, " SUBQUERY 0x%p", pItem->pSelect);
+ sqlite3_str_appendf(&str, " SUBQUERY %u", pItem->pSelect->selId);
}else{
sqlite3_str_appendf(&str, " TABLE %s", pItem->zName);
}
@@ -1242,7 +1242,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
sqlite3VdbeAddOp3(v, OP_InitCoroutine, regYield, 0, pTabItem->addrFillSub);
pLevel->p2 = sqlite3VdbeAddOp2(v, OP_Yield, regYield, addrBrk);
VdbeCoverage(v);
- VdbeComment((v, "next row of \"%s\"", pTabItem->pTab->zName));
+ VdbeComment((v, "next row of %s", pTabItem->pTab->zName));
pLevel->op = OP_Goto;
}else