diff options
author | danielk1977 <danielk1977@noemail.net> | 2006-06-16 08:01:02 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2006-06-16 08:01:02 +0000 |
commit | f1a381e7fca425b046cf23d96ea72322aaeae090 (patch) | |
tree | 9518b891195735357f23d5c58109563a89ac17eb /src/auth.c | |
parent | 1f6eec547cf6eeaec9a081c5c39f2bf5b8d8d49d (diff) | |
download | sqlite-f1a381e7fca425b046cf23d96ea72322aaeae090.tar.gz sqlite-f1a381e7fca425b046cf23d96ea72322aaeae090.zip |
Add some tests (and fixes) for virtual tables and the authorization callback. Still more to come. (CVS 3260)
FossilOrigin-Name: 9497c66e5533ec143d0efda4a419e4bdf922ae8c
Diffstat (limited to 'src/auth.c')
-rw-r--r-- | src/auth.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auth.c b/src/auth.c index 964ae66a6..fe05a68af 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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.24 2006/01/13 13:55:45 drh Exp $ +** $Id: auth.c,v 1.25 2006/06/16 08:01:03 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -182,8 +182,10 @@ int sqlite3AuthCheck( sqlite3 *db = pParse->db; int rc; - /* Don't do any authorization checks if the database is initialising. */ - if( db->init.busy ){ + /* Don't do any authorization checks if the database is initialising + ** or if the parser is being invoked from within sqlite3_declare_vtab. + */ + if( db->init.busy || IN_DECLARE_VTAB ){ return SQLITE_OK; } |