lib/dexter/indexer.rb in pgdexter-0.5.4 vs lib/dexter/indexer.rb in pgdexter-0.5.5
- old
+ new
@@ -680,10 +680,10 @@
AND #{total_time} >= \$1
AND calls >= \$2
ORDER BY
1
SQL
- execute(sql, params: [@min_time * 60000, @min_calls]).map { |q| q["query"] }
+ execute(sql, params: [@min_time * 60000, @min_calls.to_i]).map { |q| q["query"] }
end
def with_advisory_lock
lock_id = 123456
first_time = true