Skip to content

Commit

Permalink
fix: do not set postgres connection driver options if database_statem…
Browse files Browse the repository at this point in the history
…ent_timeout is nil
  • Loading branch information
bethesque committed Mar 29, 2022
1 parent 590b7e2 commit adec4b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def postgres?
private :postgres?

def driver_options
if postgres?
if postgres? && database_statement_timeout
{ options: "-c statement_timeout=#{database_statement_timeout}s" }
end
end
Expand Down

0 comments on commit adec4b0

Please sign in to comment.