mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
Wrong exception is occured when raising no translatable exception
Conflicts: activerecord/CHANGELOG.md
This commit is contained in:
@@ -188,6 +188,12 @@ module ActiveRecord
|
||||
assert_equal "DISTINCT posts.title, posts.updater_id AS alias_0", @connection.distinct("posts.title", ["posts.updater_id desc nulls last"])
|
||||
end
|
||||
|
||||
def test_raise_error_when_cannot_translate_exception
|
||||
assert_raise TypeError do
|
||||
@connection.send(:log, nil) { @connection.execute(nil) }
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def insert(ctx, data)
|
||||
binds = data.map { |name, value|
|
||||
|
||||
Reference in New Issue
Block a user