Add support for the extra parameter on the sqlite3_set_authorizer() callback
and support for failing an ATTACH with an authentication-required database using bad credentials. The extension is now feature complete, but much testing and bug-fixing remains. FossilOrigin-Name: 596e728b0eb19a34c888e33d4d37978ca2bf1e00
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ set ::auth_fail 0
|
||||
set ::auth_log [list]
|
||||
set ::auth_filter [list SQLITE_READ SQLITE_UPDATE SQLITE_SELECT SQLITE_PRAGMA]
|
||||
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
proc auth {code arg1 arg2 arg3 arg4 args} {
|
||||
if {[lsearch $::auth_filter $code]>-1} {
|
||||
return SQLITE_OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user