diff options
author | drh <drh@noemail.net> | 2003-01-13 23:27:31 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-01-13 23:27:31 +0000 |
commit | e5f9c6442f4277bc6bc29987cbc3df5c1ff55514 (patch) | |
tree | ebee71ac3e0d646809368ac165f753b560981ee9 /src/sqliteInt.h | |
parent | 1962bda76414921a526663e16d11602ce46dc212 (diff) | |
download | sqlite-e5f9c6442f4277bc6bc29987cbc3df5c1ff55514.tar.gz sqlite-e5f9c6442f4277bc6bc29987cbc3df5c1ff55514.zip |
Revise the sqlite_set_authorizer API to provide more detailed information
about the SQL statement being authorized. Only partially tested so far. (CVS 830)
FossilOrigin-Name: 45de93f913a18026a45de6254963dbcd1b0f1a19
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index b757a8320..38ae75c05 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.153 2003/01/12 18:02:18 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.154 2003/01/13 23:27:33 drh Exp $ */ #include "config.h" #include "sqlite.h" @@ -938,7 +938,7 @@ void sqliteRollbackInternalChanges(sqlite*); void sqliteCommitInternalChanges(sqlite*); Table *sqliteResultSetOfSelect(Parse*,char*,Select*); void sqliteOpenMasterTable(Vdbe *v, int); -void sqliteStartTable(Parse*,Token*,Token*,int); +void sqliteStartTable(Parse*,Token*,Token*,int,int); void sqliteAddColumn(Parse*,Token*); void sqliteAddNotNull(Parse*, int); void sqliteAddPrimaryKey(Parse*, IdList*, int); @@ -1035,13 +1035,8 @@ void sqliteCreateForeignKey(Parse*, IdList*, Token*, IdList*, int); void sqliteDeferForeignKey(Parse*, int); #ifndef SQLITE_OMIT_AUTHORIZATION void sqliteAuthRead(Parse*,Expr*,SrcList*,int); - int sqliteAuthDelete(Parse*,const char*, int); - int sqliteAuthInsert(Parse*,const char*, int); - int sqliteAuthCommand(Parse*,const char*,const char*); + int sqliteAuthCheck(Parse*,int, const char*, const char*); #else # define sqliteAuthRead(a,b,c,d) -# define sqliteAuthDelete(a,b,c) SQLITE_OK -# define sqliteAuthInsert(a,b,c) SQLITE_OK -# define sqliteAuthWrite(a,b,c) SQLITE_OK -# define sqliteAuthCommand(a,b,c) SQLITE_OK +# define sqliteAuthCheck(a,b,c,d) SQLITE_OK #endif |