Commit 64fe1c3d authored by terry%netscape.com's avatar terry%netscape.com

Debugging support -- if we get an SQL error, show the SQL command that failed.

parent f83b7e2b
...@@ -59,8 +59,12 @@ proc DebugConnect {} { ...@@ -59,8 +59,12 @@ proc DebugConnect {} {
proc SendSQL { str } { proc SendSQL { str } {
global mysqlhandle # puts $str
mysqlsel $mysqlhandle $str global mysqlhandle errorInfo
if {[catch {mysqlsel $mysqlhandle $str} errmsg]} {
puts $str
error "$errmsg - $str" $errorInfo
}
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment