1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an issue with the SQLITE_TESTCTRL_EXPLAIN_STMT and compound queries with

multiple terms.

FossilOrigin-Name: a6499c2521637931661ed4d3afc4f96f91c69785
This commit is contained in:
drh
2013-01-28 22:52:34 +00:00
parent d2a5623866
commit 47f2239fc1
3 changed files with 11 additions and 8 deletions

View File

@@ -4746,7 +4746,10 @@ void sqlite3ExplainSelect(Vdbe *pVdbe, Select *p){
sqlite3ExplainPrintf(pVdbe, "(null-select)");
return;
}
while( p->pPrior ) p = p->pPrior;
while( p->pPrior ){
p->pPrior->pNext = p;
p = p->pPrior;
}
sqlite3ExplainPush(pVdbe);
while( p ){
explainOneSelect(pVdbe, p);