mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Similar fix to the previous check-in, but this time for
sqlite3_preupdate_new(). FossilOrigin-Name: 9aaff764d508cbd9823f23cdf0c510255721bc5c09be481ebc60bd8902ceb8c5
This commit is contained in:
@ -498,6 +498,11 @@ proc preupdate_hook {args} {
|
||||
}
|
||||
}
|
||||
if {$type != "DELETE"} {
|
||||
set x [catch {db preupdate new [db preupdate count]}]
|
||||
if {!$x} {
|
||||
lappend "ERROR: sqlite3_preupdate_old() accepted an out-of-bounds\
|
||||
column index"
|
||||
}
|
||||
for {set i 0} {$i < [db preupdate count]} {incr i} {
|
||||
set rc [catch { db preupdate new $i } v]
|
||||
lappend ::preupdate $v
|
||||
|
Reference in New Issue
Block a user