1
0
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:
drh
2025-06-24 18:27:59 +00:00
parent 66cd200ede
commit a67c71224f
4 changed files with 15 additions and 8 deletions

View File

@ -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