make Connection#prepared_statements? readonly

This commit is contained in:
Brian J. Cardiff 2016-12-04 15:19:15 -03:00
parent d55b088216
commit 4721ecbf6b
4 changed files with 8 additions and 14 deletions

View file

@ -212,8 +212,8 @@ def with_dummy(uri : String = "dummy://host?checkout_timeout=0.5")
end
end
def with_dummy_connection
with_dummy do |db|
def with_dummy_connection(options = "")
with_dummy("dummy://host?checkout_timeout=0.5&#{options}") do |db|
db.using_connection do |cnn|
yield cnn.as(DummyDriver::DummyConnection)
end