JTDS exception handling with SQLState is less accurate than with regexps.
# File lib/sequel/adapters/jdbc/jtds.rb, line 25 def database_exception_use_sqlstates? false end
# File lib/sequel/adapters/jdbc/jtds.rb, line 29 def disconnect_error?(exception, opts) super || exception.message =~ /\AInvalid state, the Connection object is closed\.\z/ end
Handle nil values by using setNull with the correct parameter type.
# File lib/sequel/adapters/jdbc/jtds.rb, line 34 def set_ps_arg_nil(cps, i) cps.setNull(i, cps.getParameterMetaData.getParameterType(i)) end