The following code:
log.puts "Updating entry at #{posn}"
begin
@db.query %{ update ring
set url = '#{url}',
dir = '#{dir}'
where posn=#{posn}
}
rescue Exception => e
log.puts e.class
log.puts e.error
log.puts e.errno
end
log.puts "Done"
generates the trace:
Updating entry at 1
MysqlError
0
Done
It looks like it's raising an exception, but there's no reported
error. This is with mysql-ruby 2.3.2.a and mysql 3.23.38.
Has anyone come across this?
Thanks
Dave