[sqlite] Documentation Error: sqlite3_set_authorizer() interface

2015-09-02 Thread Mark Brand
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..".

[sqlite] Documentation Error: sqlite3_set_authorizer() interface

2015-08-31 Thread Domingo Alvarez Duarte
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

[sqlite] Documentation Error: sqlite3_set_authorizer() interface

2015-08-31 Thread Mark Brand
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