1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Correctly capture the error when a RETURNING clause appears on an

attempt to UPDATE an eponymous virtual table.
dbsqlfuzz 486f791cbe2dc45839310073e71367a1d8ad22dd.

FossilOrigin-Name: 778a9a6e6f8d960fd55ac9be7eea20b1875a46192db85e63dddc61b632b30173
This commit is contained in:
drh
2021-04-02 20:43:26 +00:00
parent aecc04d642
commit 9af69ff547
4 changed files with 15 additions and 10 deletions

View File

@@ -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;