aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <Dan Kennedy>2023-10-26 16:05:57 +0000
committerdan <Dan Kennedy>2023-10-26 16:05:57 +0000
commit94331d406a9549f5dd795a8f6a805a23aefed729 (patch)
tree61342a577fc47eeb84ca4b7d340f44f65d5ae53a /src/sqliteInt.h
parent3c75a03615ec49cdad31983b1e6140d3d716f905 (diff)
downloadsqlite-94331d406a9549f5dd795a8f6a805a23aefed729.tar.gz
sqlite-94331d406a9549f5dd795a8f6a805a23aefed729.zip
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
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index b6cc81fba..dbf01dd13 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -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" */
};
/*