diff --git a/lib/active_record/connection_adapters/sqlserver/database_statements.rb b/lib/active_record/connection_adapters/sqlserver/database_statements.rb index 74aea0e8e..5bffb5408 100644 --- a/lib/active_record/connection_adapters/sqlserver/database_statements.rb +++ b/lib/active_record/connection_adapters/sqlserver/database_statements.rb @@ -467,12 +467,15 @@ def _execute(sql, conn, perform_do: false) # TODO: Remove def dblib_execute(sql) - @raw_connection.execute(sql).tap do |result| - # TinyTDS returns false instead of raising an exception if connection fails. - # Getting around this by raising an exception ourselves while this PR - # https://github.com/rails-sqlserver/tiny_tds/pull/469 is not released. - raise TinyTds::Error, "failed to execute statement" if result.is_a?(FalseClass) - end + throw NotImplementedError + + + # @raw_connection.execute(sql).tap do |result| + # # TinyTDS returns false instead of raising an exception if connection fails. + # # Getting around this by raising an exception ourselves while this PR + # # https://github.com/rails-sqlserver/tiny_tds/pull/469 is not released. + # raise TinyTds::Error, "failed to execute statement" if result.is_a?(FalseClass) + # end end def ensure_established_connection!