mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
make pool_prepared_statements always prepare statement in connection
This commit is contained in:
parent
2cab0b37f5
commit
543592a337
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue