aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sqliteInt.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index cc31acdba..70d44a87a 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1761,17 +1761,16 @@ struct sqlite3 {
*/
#define ConstFactorOk(P) ((P)->okConstFactor)
-/*
-** Possible values for the sqlite3.eOpenState field.
-** The numbers are obtained at random and have no special meaning, other
-** than being distinct from one another.
-*/
-#define SQLITE_STATE_OPEN 0xa0 /* Database is open */
-#define SQLITE_STATE_CLOSED 0x9f /* Database is closed */
-#define SQLITE_STATE_SICK 0x4b /* Error and awaiting close */
-#define SQLITE_STATE_BUSY 0xf0 /* Database currently in use */
+/* Possible values for the sqlite3.eOpenState field.
+** The numbers are randomly selected such that a minimum of three bits must
+** change to convert any number to another or to zero
+*/
+#define SQLITE_STATE_OPEN 0x3b /* Database is open */
+#define SQLITE_STATE_CLOSED 0x63 /* Database is closed */
+#define SQLITE_STATE_SICK 0x77 /* Error and awaiting close */
+#define SQLITE_STATE_BUSY 0x7d /* Database currently in use */
#define SQLITE_STATE_ERROR 0xb5 /* An SQLITE_MISUSE error occurred */
-#define SQLITE_STATE_ZOMBIE 0x64 /* Close with last statement close */
+#define SQLITE_STATE_ZOMBIE 0xe5 /* Close with last statement close */
/*
** Each SQL function is defined by an instance of the following