The documentation is correct after all. The table name is not in the 4th
parameter, but in the 6th parameter. The content of the 6th parameter is
covered by "The 6th parameter to the authorizer callback is the name of
the inner-most trigger or view that is responsible for the access
attempt..".
Hello !
Also there is no way to link the callback to specific statement, I think that
an extra parameter with the whole sql statement would be needed and/or any
other way to link several calls to a statement.
Maybe something like: int sqlite3_set_authorizer(sqlite3*,int
(*xAuth)(void
According to the documentations of The Authorizer Action Codes
(http://www.sqlite.org/c3ref/c_alter_table.html):
Authorizer Action Codes
/*** 3rd 4th
***/
#define SQLITE_SELECT 21 /* NULLNULL
3 matches
Mail list logo