Fix a compilation issue in the "userauth" extension. Also fix a few test
script errors that occur with SQLITE_USER_AUTHENTICATION=1 builds. FossilOrigin-Name: e7db5f59ee62bb8bf61e17a75ecf89f7472fccf68d6d02b892e349142db1f47e
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ set testprefix alterauth
|
||||
set ::auth [list]
|
||||
proc xAuth {type args} {
|
||||
if {$type == "SQLITE_ALTER_TABLE"} {
|
||||
lappend ::auth [concat $type $args]
|
||||
lappend ::auth [concat $type [lrange $args 0 3]]
|
||||
}
|
||||
return SQLITE_OK
|
||||
}
|
||||
|
||||
+2
-1
@@ -2598,7 +2598,8 @@ do_test auth-8.2 {
|
||||
# invocation with no column name specified, compilation fails.
|
||||
#
|
||||
set ::authargs [list]
|
||||
proc auth {op a b c d} {
|
||||
proc auth {op args} {
|
||||
foreach {a b c d} $args break
|
||||
lappend ::authargs $op $a $b $c $d
|
||||
if {$op == "SQLITE_READ"} { return "SQLITE_DENY" }
|
||||
return "SQLITE_OK"
|
||||
|
||||
@@ -136,6 +136,7 @@ array set ::Configs [strip_comments {
|
||||
-DSQLITE_ENABLE_STAT4
|
||||
-DSQLITE_ENABLE_RBU
|
||||
-DSQLITE_MAX_ATTACHED=125
|
||||
-DSQLITE_USER_AUTHENTICATION=1
|
||||
-DLONGDOUBLE_TYPE=double
|
||||
--enable-session
|
||||
}
|
||||
|
||||
+4
-3
@@ -682,7 +682,8 @@ do_test view-25.1 {
|
||||
}
|
||||
proc authLogDelete {code arg1 arg2 arg3 arg4 args} {
|
||||
if {$code=="SQLITE_DELETE" && [string match sqlite_stat* $arg1]} {
|
||||
lappend ::log [list $code $arg1 $arg2 $arg3 $arg4 $args]
|
||||
# lappend ::log [list $code $arg1 $arg2 $arg3 $arg4 $args]
|
||||
lappend ::log [list $code $arg1 $arg2 $arg3 $arg4]
|
||||
}
|
||||
return SQLITE_OK
|
||||
}
|
||||
@@ -692,8 +693,8 @@ do_test view-25.1 {
|
||||
set log
|
||||
} {}
|
||||
|
||||
set res [list {SQLITE_DELETE sqlite_stat1 {} main {} {}}]
|
||||
ifcapable stat4 { lappend res {SQLITE_DELETE sqlite_stat4 {} main {} {}} }
|
||||
set res [list {SQLITE_DELETE sqlite_stat1 {} main {}}]
|
||||
ifcapable stat4 { lappend res {SQLITE_DELETE sqlite_stat4 {} main {}} }
|
||||
do_test view-25.2 {
|
||||
set log ""
|
||||
db eval {DROP TABLE t25;}
|
||||
|
||||
Reference in New Issue
Block a user