Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add disconnect detection to tinytds adapter, though correct behavior …

…may require an update to tiny_tds
  • Loading branch information...
commit 6820566aa618fa64ba15cae31f16fecc2c46e151 1 parent 7885ea6
@jeremyevans authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  CHANGELOG
  2. +1 −1  lib/sequel/adapters/tinytds.rb
View
2  CHANGELOG
@@ -1,5 +1,7 @@
=== HEAD
+* Add disconnect detection to tinytds adapter, though correct behavior may require an update to tiny_tds (cult_hero)
+
* Add Dataset/Database#mssql_unicode_strings accessor when connecting to MSSQL to control string literalization (semmons99, jeremyevans)
* Fix ODBC::Time instance handling in the odbc adapter (jeremyevans)
View
2  lib/sequel/adapters/tinytds.rb
@@ -39,7 +39,7 @@ def execute(sql, opts={})
end
yield(r) if block_given?
rescue TinyTds::Error => e
- raise_error(e)
+ raise_error(e, :disconnect=>c.closed?)
ensure
r.cancel if r && c.sqlsent?
end
Please sign in to comment.
Something went wrong with that request. Please try again.