From 039035a397bd1de32841f7d1aa5b8b919474934c Mon Sep 17 00:00:00 2001 From: "Brian J. Cardiff" Date: Fri, 16 Dec 2016 11:56:27 -0300 Subject: [PATCH] fix #scalar queries where not handled with retry connection pool logic --- src/db/pool_statement.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/db/pool_statement.cr b/src/db/pool_statement.cr index 5a7b51f..668ce2b 100644 --- a/src/db/pool_statement.cr +++ b/src/db/pool_statement.cr @@ -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