Andrew Kane пре 10 година
родитељ
комит
d9b3381761
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/controllers/blazer/queries_controller.rb

+ 1 - 1
app/controllers/blazer/queries_controller.rb

@@ -155,7 +155,7 @@ module Blazer
       error = nil
       begin
         Blazer::Connection.transaction do
-          Blazer::Connection.connection.execute("SET statement_timeout = #{Blazer.timeout}") if postgresql?
+          Blazer::Connection.connection.execute("SET statement_timeout = #{Blazer.timeout * 1000}") if Blazer.timeout && postgresql?
           result = Blazer::Connection.connection.select_all(statement)
           result.each do |untyped_row|
             row = {}