1
0
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:
danielk1977
2004-06-14 11:35:17 +00:00
parent 3fe83ac7a1
commit 66b978a415
3 changed files with 13 additions and 8 deletions

View File

@@ -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;
}