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
diff --git a/src/expr.c b/src/expr.c
index e6df332..019bf17 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1487,7 +1487,7 @@
pNew->pWin = 0;
pNew->pWinDefn = sqlite3WindowListDup(db, p->pWinDefn);
#endif
- sqlite3SelectSetName(pNew, p->zSelName);
+ pNew->selId = p->selId;
*pp = pNew;
pp = &pNew->pPrior;
pNext = pNew;