fix #scalar queries where not handled with retry connection pool logic

This commit is contained in:
Brian J. Cardiff 2016-12-16 11:56:27 -03:00
parent 8e8d8024f9
commit 039035a397

View file

@ -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