diff options
author | drh <drh@noemail.net> | 2013-10-28 22:33:36 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-10-28 22:33:36 +0000 |
commit | 7afc8b0c3f374e5b8f60a15dcc9bf9945f81cb78 (patch) | |
tree | 83c1f9c3987e69839961a76107440c2c54019464 /src | |
parent | 70a0222f0763e341c27bea13589d5db176f2df9a (diff) | |
download | sqlite-7afc8b0c3f374e5b8f60a15dcc9bf9945f81cb78.tar.gz sqlite-7afc8b0c3f374e5b8f60a15dcc9bf9945f81cb78.zip |
Formatting improvements to the WHERE-clause constraint display in the
wheretrace debugging logic.
FossilOrigin-Name: 3a9e3ed94bf617f00c48009b1a6d348a8f23a3cf
Diffstat (limited to 'src')
-rw-r--r-- | src/where.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/where.c b/src/where.c index 4868a7a0b..304732db6 100644 --- a/src/where.c +++ b/src/where.c @@ -3903,9 +3903,6 @@ static void whereExplainTerm(Vdbe *v, WhereTerm *pTerm){ if( pTerm->eOperator & WO_EQUIV ) zType[1] = 'E'; if( ExprHasProperty(pTerm->pExpr, EP_FromJoin) ) zType[2] = 'L'; sqlite3ExplainPrintf(v, "%s ", zType); - if( (pTerm->wtFlags & (TERM_ORINFO|TERM_ANDINFO))==0 ){ - sqlite3ExplainPrintf(v, "lhs=%-2d ", pTerm->u.leftColumn); - } sqlite3ExplainExpr(v, pTerm->pExpr); } #endif /* WHERETRACE_ENABLED && SQLITE_ENABLE_TREE_EXPLAIN */ @@ -3959,7 +3956,7 @@ static void whereLoopPrint(WhereLoop *p, WhereClause *pWC){ sqlite3ExplainBegin(v); for(i=0; i<p->nLTerm; i++){ WhereTerm *pTerm = p->aLTerm[i]; - sqlite3ExplainPrintf(v, " (%d) #%d ", i+1, (int)(pTerm-pWC->a)); + sqlite3ExplainPrintf(v, " (%d) #%-2d ", i+1, (int)(pTerm-pWC->a)); sqlite3ExplainPush(v); whereExplainTerm(v, pTerm); sqlite3ExplainPop(v); @@ -5865,7 +5862,7 @@ WhereInfo *sqlite3WhereBegin( Vdbe *v = pParse->pVdbe; sqlite3ExplainBegin(v); for(i=0; i<sWLB.pWC->nTerm; i++){ - sqlite3ExplainPrintf(v, "#%d ", i); + sqlite3ExplainPrintf(v, "#%-2d ", i); sqlite3ExplainPush(v); whereExplainTerm(v, &sWLB.pWC->a[i]); sqlite3ExplainPop(v); |