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

Deal with the case of a reentrant INSERT on a virtual table where the

outer INSERT has a RETURNING clause but the inner does not.
dbsqlfuzz 3ac9a1e33f676254e02c0f297263b0a7aeb0c1a5.

FossilOrigin-Name: 8aba78e4dbf5c196aa50a28579f4bcd7c96103661c5968d62b2fded075bc73e4
This commit is contained in:
drh
2023-10-26 12:59:41 +00:00
parent 208f5c65d4
commit 3c75a03615
3 changed files with 8 additions and 8 deletions

View File

@@ -970,7 +970,7 @@ static void codeReturningTrigger(
SrcList sFrom;
assert( v!=0 );
assert( pParse->bReturning );
if( !pParse->bReturning ) return;
assert( db->pParse==pParse );
pReturning = pParse->u1.pReturning;
assert( pTrigger == &(pReturning->retTrig) );