diff options
author | drh <> | 2021-05-20 00:44:04 +0000 |
---|---|---|
committer | drh <> | 2021-05-20 00:44:04 +0000 |
commit | cd1499f47b1de7c6ca9eb9e68e169218a203c5df (patch) | |
tree | 9426f29f5bd89df5876ea8af4aa0535e088cff9a /src/update.c | |
parent | 5da5b71435fcb7d4cd8e43a3ce386b5c852e4e2e (diff) | |
download | sqlite-cd1499f47b1de7c6ca9eb9e68e169218a203c5df.tar.gz sqlite-cd1499f47b1de7c6ca9eb9e68e169218a203c5df.zip |
Replace [0f0959c6f95046e8] with a new and better solution that also fixes the
CTE name resolution problem described in
[forum:/forumpost/8590e3f6dc|forum post 8590e3f6dc].
Test cases for both problems added.
FossilOrigin-Name: 5614279daff5007d6e047c5c1b3cc82ba80a5c91c529525b0fe68b79ee82dd2c
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/update.c b/src/update.c index a72c02a52..132232724 100644 --- a/src/update.c +++ b/src/update.c @@ -220,10 +220,7 @@ static void updateFromSelect( assert( pTabList->nSrc>1 ); if( pSrc ){ - if( pSrc->a[0].zDatabase==0 ){ - int iSchema = sqlite3SchemaToIndex(db, pTab->pSchema); - pSrc->a[0].zDatabase = sqlite3DbStrDup(db, db->aDb[iSchema].zDbSName); - } + pSrc->a[0].fg.notCte = 1; pSrc->a[0].iCursor = -1; pSrc->a[0].pTab->nTabRef--; pSrc->a[0].pTab = 0; |