diff options
author | drh <> | 2024-04-05 11:28:30 +0000 |
---|---|---|
committer | drh <> | 2024-04-05 11:28:30 +0000 |
commit | 67276c648bae771603ca871037de6cb4b8970e6c (patch) | |
tree | 98ad52a2f44a2aab69b2f957dca2fb97b711a3c0 /src | |
parent | ff549b138434455382d7bd11c495c488d8528d5d (diff) | |
download | sqlite-version-3.44.3.tar.gz sqlite-version-3.44.3.zip |
When compiling with SQLITE_ALLOW_ROWID_IN_VIEW, if the RETURNING clause ofversion-3.44.3
an UPDATE of a view specifies a rowid, then return NULL for the value of
that rowid.
FossilOrigin-Name: d38cfa6067ccd450c4fac183765c05ff247ecb49ccf172a68ef9d381577df84f
Diffstat (limited to 'src')
-rw-r--r-- | src/update.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c index cd7d73f3f..b6068caa7 100644 --- a/src/update.c +++ b/src/update.c @@ -921,6 +921,9 @@ void sqlite3Update( } } if( chngRowid==0 && pPk==0 ){ +#ifdef SQLITE_ALLOW_ROWID_IN_VIEW + if( isView ) sqlite3VdbeAddOp2(v, OP_Null, 0, regOldRowid); +#endif sqlite3VdbeAddOp2(v, OP_Copy, regOldRowid, regNewRowid); } } |