changeset 638:5260156d9521

tj: Oops, forgot to use LIKE instead of '=' here for comparing uid. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Feb 2021 12:30:07 +0200
parents 2f62fa434056
children c11ee9fea4b8
files tj.tcl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tj.tcl	Tue Feb 16 12:29:36 2021 +0200
+++ b/tj.tcl	Tue Feb 16 12:30:07 2021 +0200
@@ -471,7 +471,7 @@
       set uid $tj_default_id
     } else {
       # Check if a TJ exists with this id?
-      set usql "SELECT COUNT(*) FROM tj WHERE uuser='[utl_escape $uhand]' AND uid='[utl_escape $uid]'"
+      set usql "SELECT COUNT(*) FROM tj WHERE uuser='[utl_escape $uhand]' AND uid LIKE '[utl_escape $uid]'"
       if {[catch {set nids [tj_dbh onecolumn $usql]} uerrmsg]} {
         tj_msg $upublic $unick $uchan "err_sql" [list $uerrmsg]
         tj_log "$uerrmsg on SQL:\n$usql"