diff options
author | drh <drh@noemail.net> | 2016-07-28 18:38:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-07-28 18:38:13 +0000 |
commit | a8914faaaa981c87f193eb62477e7ba7d0affeed (patch) | |
tree | b36540d1e52e20d6a894c537ebaaaa74b98d1cbc /src/auth.c | |
parent | aa0325872fa725d1c2622d3bd4f8b87a7c137bc3 (diff) | |
download | sqlite-a8914faaaa981c87f193eb62477e7ba7d0affeed.tar.gz sqlite-a8914faaaa981c87f193eb62477e7ba7d0affeed.zip |
Disable the authorizer callback when reparsing the schema. This avoids
undesirable authorization failures following an ALTER TABLE.
FossilOrigin-Name: 805d01cdabb48a69eb986a7f084e53eb25d76b7f
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth.c b/src/auth.c index 9768fc2fc..8a3f8e7d0 100644 --- a/src/auth.c +++ b/src/auth.c @@ -111,6 +111,7 @@ int sqlite3AuthReadCol( char *zDb = db->aDb[iDb].zName; /* Name of attached database */ int rc; /* Auth callback return code */ + if( db->init.busy ) return SQLITE_OK; rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext #ifdef SQLITE_USER_AUTHENTICATION ,db->auth.zAuthUser |