aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-10-30 16:25:35 +0000
committerdrh <drh@noemail.net>2018-10-30 16:25:35 +0000
commitfd748c6460a5ccfc7db0c2f0564d3f78f6845d19 (patch)
treef25a2f37b4536c0eecb8e143e7858e9f34b9621b /src/pragma.c
parenta751f39c3fb8f9abd162b44c6d754142f232f1dd (diff)
downloadsqlite-fd748c6460a5ccfc7db0c2f0564d3f78f6845d19.tar.gz
sqlite-fd748c6460a5ccfc7db0c2f0564d3f78f6845d19.zip
Split the SQLITE_WriteSchema flag in two flags, WriteSchema and
SQLITE_NoSchemaError. Set only WriteSchema on a VACUUM to avoid problems when trying to vacuum a corrupt database. With this change, the size of the flags field on sqlite3 must grow from 32 to 64 bytes. FossilOrigin-Name: 4f9878107a54356b7105fa1db7655ee239685d570436f6ad4d4221c9bd829b3d
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c
index c3c62a722..52d6338ca 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1037,7 +1037,7 @@ void sqlite3Pragma(
setPragmaResultColumnNames(v, pPragma);
returnSingleInt(v, (db->flags & pPragma->iArg)!=0 );
}else{
- int mask = pPragma->iArg; /* Mask of bits to set or clear. */
+ u64 mask = pPragma->iArg; /* Mask of bits to set or clear. */
if( db->autoCommit==0 ){
/* Foreign key support may not be enabled or disabled while not
** in auto-commit mode. */