Merge branch 'jruby_issue' of https://github.com/ahorek/database_cleaner into ahorek-jruby_issue

This commit is contained in:
Ernesto Tagwerker 2015-06-29 11:46:13 -03:00
commit 12ad822458

View file

@ -61,7 +61,7 @@ module DatabaseCleaner::ActiveRecord
def information_schema_exists? connection
@information_schema_exists ||=
begin
connection.execute("SELECT * FROM information_schema.tables")
connection.execute("SELECT 1 FROM information_schema.tables")
true
rescue
false