make pool_prepared_statements always prepare statement in connection

This commit is contained in:
Brian J. Cardiff 2016-12-03 20:59:14 -03:00
parent 2cab0b37f5
commit 543592a337
2 changed files with 13 additions and 1 deletions

View file

@ -34,7 +34,7 @@ module DB
clean_connections
conn, existing = @db.checkout_some(@connections)
@connections << WeakRef.new(conn) unless existing
conn.build(@query)
conn.prepared.build(@query)
end
private def clean_connections