aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2021-11-10 10:59:10 +0000
committerdrh <>2021-11-10 10:59:10 +0000
commit46c425b4dd4e0e6371d8794b671135593d2ddf8c (patch)
tree3adca77c1d00e6517d647f60b23ca4e512979e7d /src/sqliteInt.h
parent995d33ae0214724816ac7b39db600abef6aa2380 (diff)
downloadsqlite-46c425b4dd4e0e6371d8794b671135593d2ddf8c.tar.gz
sqlite-46c425b4dd4e0e6371d8794b671135593d2ddf8c.zip
Make SQLITE_CORRUPT sticky: If a CORRUPT error is returned, all subsequent
write statements within the same transaction also fail early with SQLITE_CORRUPT. FossilOrigin-Name: 3feb0f1c3840904d28fc9a61262820e2b9b764addc1dd178aecc2cd0f952042c
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 75f3bfca2..cece2360e 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1712,6 +1712,7 @@ struct sqlite3 {
#define SQLITE_CountRows HI(0x00001) /* Count rows changed by INSERT, */
/* DELETE, or UPDATE and return */
/* the count using a callback. */
+#define SQLITE_CorruptRdOnly HI(0x00002) /* Prohibit writes due to error */
/* Flags used only if debugging */
#ifdef SQLITE_DEBUG