aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2021-04-02 20:43:26 +0000
committerdrh <>2021-04-02 20:43:26 +0000
commit9af69ff547d76f1f8c7c4513fdb6c0ca1a32f9fc (patch)
tree79b237eab3716d59083fa1f6493a1baa122a571e /src
parentaecc04d64269c8e798e98b1f049f2b974763fd92 (diff)
downloadsqlite-9af69ff547d76f1f8c7c4513fdb6c0ca1a32f9fc.tar.gz
sqlite-9af69ff547d76f1f8c7c4513fdb6c0ca1a32f9fc.zip
Correctly capture the error when a RETURNING clause appears on an
attempt to UPDATE an eponymous virtual table. dbsqlfuzz 486f791cbe2dc45839310073e71367a1d8ad22dd. FossilOrigin-Name: 778a9a6e6f8d960fd55ac9be7eea20b1875a46192db85e63dddc61b632b30173
Diffstat (limited to 'src')
-rw-r--r--src/trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trigger.c b/src/trigger.c
index 3acdf1431..2cdbaed89 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -69,7 +69,7 @@ Trigger *sqlite3TriggerList(Parse *pParse, Table *pTab){
){
pTrig->pNext = pList;
pList = pTrig;
- }else if( pTrig->op==TK_RETURNING ){
+ }else if( pTrig->op==TK_RETURNING && pParse->db->pVtabCtx==0 ){
assert( pParse->bReturning );
assert( &(pParse->u1.pReturning->retTrig) == pTrig );
pTrig->table = pTab->zName;