aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-10-09 14:58:15 +0000
committerdrh <drh@noemail.net>2012-10-09 14:58:15 +0000
commitd1102b1ec7d50045cbbcf2575eacb2d423361fc7 (patch)
treea586e444e7362a6cf02fa05c85311851e36abb97 /src/expr.c
parentc4645dacfb435002911b187b474fa0788db9cde0 (diff)
parent5a55826bcda624f8fa4a3b7cc0c8845a689d8957 (diff)
downloadsqlite-d1102b1ec7d50045cbbcf2575eacb2d423361fc7.tar.gz
sqlite-d1102b1ec7d50045cbbcf2575eacb2d423361fc7.zip
Merge the latest trunk changes, especially the ORDER BY optimizer enhancements
but also other fixes, onto the sessions branch. FossilOrigin-Name: f1fbb8c5bfa84e84e0b8e2872d83b06a0c0d5acc
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index 2d1fb38ed..04216b171 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -930,6 +930,7 @@ SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
struct SrcList_item *pNewItem = &pNew->a[i];
struct SrcList_item *pOldItem = &p->a[i];
Table *pTab;
+ pNewItem->pSchema = pOldItem->pSchema;
pNewItem->zDatabase = sqlite3DbStrDup(db, pOldItem->zDatabase);
pNewItem->zName = sqlite3DbStrDup(db, pOldItem->zName);
pNewItem->zAlias = sqlite3DbStrDup(db, pOldItem->zAlias);