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/insert.c | |
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/insert.c')
-rw-r--r-- | src/insert.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c index 888f12909..93a073b50 100644 --- a/src/insert.c +++ b/src/insert.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** -** $Id: insert.c,v 1.70 2003/01/12 19:33:53 drh Exp $ +** $Id: insert.c,v 1.71 2003/01/13 23:27:33 drh Exp $ */ #include "sqliteInt.h" @@ -114,7 +114,6 @@ void sqliteInsert( int newIdx = -1; if( pParse->nErr || sqlite_malloc_failed ) goto insert_cleanup; - if( sqliteAuthCommand(pParse, "INSERT", 0) ) goto insert_cleanup; db = pParse->db; /* Locate the table into which we will be inserting new information. @@ -127,7 +126,7 @@ void sqliteInsert( pParse->nErr++; goto insert_cleanup; } - if( sqliteAuthInsert(pParse, zTab, 0) ){ + if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0) ){ goto insert_cleanup; } |