Handle the case where a virtual table xBestIndex method called while coding a trigger fired by a top-level statement with a RETURNING clause prepares a statement that also contains a RETURNING clause.

FossilOrigin-Name: ec6bffa3b0fbf7cdee852cb0208de1f5869dafd88e2ee64c23cec89634219adc
This commit is contained in:
dan
2023-10-26 16:05:57 +00:00
parent 3c75a03615
commit 94331d406a
5 changed files with 104 additions and 20 deletions
+1
View File
@@ -4077,6 +4077,7 @@ struct Returning {
int iRetCur; /* Transient table holding RETURNING results */
int nRetCol; /* Number of in pReturnEL after expansion */
int iRetReg; /* Register array for holding a row of RETURNING */
char zName[40]; /* Name of trigger: "sqlite_returning_%p" */
};
/*