Commit 0d77bac
committed
Adjust error message when connection is dead
TinyTDS returns false instead of raising an exception if connection fails while
executing a query.
Getting around this by raising an exception ourselves while this PR
rails-sqlserver/tiny_tds#469 is not released.
The solution came from #717 and #818, I am just adjusting the error
message to make it the same as that TinyTDS PR.1 parent 60e2f0c commit 0d77bac
File tree
1 file changed
+6
-4
lines changed- lib/active_record/connection_adapters/sqlserver
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| |||
0 commit comments