db-update-1 contains the same error check found here. Isn't clear
from the history why db-update-1 wasn't used right from the start.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v3: New patch
set username "[id user]@$hostname"
transaction resources {
- set nrows [db-execute "
+ db-update-1 "
UPDATE tasks
SET username = [pg_quote $username],
comment = [pg_quote $comment]
WHERE taskid = $taskid
AND type = [pg_quote [lindex $refinfo 0]]
AND refkey = [pg_quote [lindex $refinfo 1]]
- "]
- }
- if {$nrows != 1} {
- error "$nrows $taskid $refinfo ?"
+ "
}
}