aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2023-03-17 00:01:32 +0000
committerdrh <>2023-03-17 00:01:32 +0000
commita84ead119e291cb980e3d18135a0c28d82cf2317 (patch)
tree1e794fb5452fc2f0e4c2bea8258a068007293032 /src/sqliteInt.h
parentb816ca9994e03a8bc829b49452b8158a731e81a9 (diff)
downloadsqlite-a84ead119e291cb980e3d18135a0c28d82cf2317.tar.gz
sqlite-a84ead119e291cb980e3d18135a0c28d82cf2317.zip
Fix assert() statements that would (incorrectly) fire if an IF NOT EXISTS
trigger that already exists contained two or more RETURNING clauses. Tickets [89d259d45b855a0d] and [d15b3a4ea901ef0d]. FossilOrigin-Name: 648899e4ded72cac6cc24bccf7ebfc709ee7309a003452b21fd6ab0ba20c34b8
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 95fda3bbb..8cb0198a2 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3715,6 +3715,9 @@ struct Parse {
#if defined(SQLITE_DEBUG) || defined(SQLITE_COVERAGE_TEST)
u8 earlyCleanup; /* OOM inside sqlite3ParserAddCleanup() */
#endif
+#ifdef SQLITE_DEBUG
+ u8 ifNotExists; /* Might be true if IF NOT EXISTS. Assert()s only */
+#endif
int nRangeReg; /* Size of the temporary register block */
int iRangeReg; /* First register in temporary register block */
int nErr; /* Number of errors seen */