mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Don't invoke authorisation callback during database initialisation. (CVS 1588)
FossilOrigin-Name: 293fbf0aa5c221bc341d0d9afc73d459f427f940
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
** systems that do not need this facility may omit it by recompiling
|
||||
** the library with -DSQLITE_OMIT_AUTHORIZATION=1
|
||||
**
|
||||
** $Id: auth.c,v 1.14 2004/05/10 10:34:34 danielk1977 Exp $
|
||||
** $Id: auth.c,v 1.15 2004/06/14 11:35:18 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -174,6 +174,11 @@ int sqlite3AuthCheck(
|
||||
sqlite *db = pParse->db;
|
||||
int rc;
|
||||
|
||||
/* Don't do any authorization checks if the database is initialising. */
|
||||
if( db->init.busy ){
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
if( db->xAuth==0 ){
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user