diff options
author | drh <> | 2022-04-22 16:15:48 +0000 |
---|---|---|
committer | drh <> | 2022-04-22 16:15:48 +0000 |
commit | 67f70bea06eea1e20124c4e97d2f545b3f10b473 (patch) | |
tree | 6244e193f3ff28fe9e7732438f332294f91855ec /src/expr.c | |
parent | 9b843f0ce0bae9a6a62edd0a006bcec436622cdf (diff) | |
download | sqlite-67f70bea06eea1e20124c4e97d2f545b3f10b473.tar.gz sqlite-67f70bea06eea1e20124c4e97d2f545b3f10b473.zip |
Honor the MATERIALIZED keyword on a common table expression by not flattening
the CTE into an outer query.
FossilOrigin-Name: 8d631a6b9eb06b54b10eda595a4c588ca38f909b4afa653b24d1f720b55d72f7
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index a30097134..170987621 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1527,6 +1527,7 @@ With *sqlite3WithDup(sqlite3 *db, With *p){ pRet->a[i].pSelect = sqlite3SelectDup(db, p->a[i].pSelect, 0); pRet->a[i].pCols = sqlite3ExprListDup(db, p->a[i].pCols, 0); pRet->a[i].zName = sqlite3DbStrDup(db, p->a[i].zName); + pRet->a[i].eM10d = p->a[i].eM10d; } } } |