mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
fix #scalar queries where not handled with retry connection pool logic
This commit is contained in:
parent
8e8d8024f9
commit
039035a397
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ module DB
|
|||
statement_with_retry &.query(args)
|
||||
end
|
||||
|
||||
# See `QueryMethods#scalar`
|
||||
def scalar(*args)
|
||||
statement_with_retry &.scalar(*args)
|
||||
end
|
||||
|
||||
# builds a statement over a real connection
|
||||
# the conneciton is registered in `@connections`
|
||||
private abstract def build_statement : Statement
|
||||
|
|
Loading…
Reference in a new issue