Skip to content

Commit

Permalink
Fix some translation exceptions when sql is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseChavez committed Aug 6, 2024
1 parent 01d9ec3 commit 23bf16c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/arjdbc/mssql/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ def translate_exception(exception, message:, sql:, binds:)
RangeError.new(message, sql: sql, binds: binds)
when /Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation/
StatementInvalid.new(message, sql: sql, binds: binds)
when /Incorrect syntax near the keyword .*/
StatementInvalid.new(message, sql: sql, binds: binds)
when /Could not find stored procedure .*/
StatementInvalid.new(message, sql: sql, binds: binds)
else
super
end
Expand Down

0 comments on commit 23bf16c

Please sign in to comment.