# HG changeset patch # User Matti Hamalainen # Date 1613471357 -7200 # Node ID c3911a8c28e5045f6e723931af4248c9cb9eac8c # Parent 4fbe70d3b63af80dff758761f5c49e6ca4b67fd6 tj: Oops, in 'set' command UPDATE clause we had forgotten to specify uuser constraint when we converted to using uids instead of unique row ids. Fixed. diff -r 4fbe70d3b63a -r c3911a8c28e5 tj.tcl --- a/tj.tcl Tue Feb 16 12:28:23 2021 +0200 +++ b/tj.tcl Tue Feb 16 12:29:17 2021 +0200 @@ -374,7 +374,7 @@ } if {[llength $usqlargs] > 0} { - set usql "UPDATE tj SET [join $usqlargs ,] WHERE uid LIKE '[utl_escape $uid]'" + set usql "UPDATE tj SET [join $usqlargs ,] WHERE uuser='[utl_escape $uhand]' AND uid LIKE '[utl_escape $uid]'" if {[catch {tj_dbh eval $usql} uerrmsg]} { tj_msg $upublic $unick $uchan "err_sql" [list $uerrmsg] tj_log "$uerrmsg on SQL:\n$usql"