PostgreSQL fix.

pull/6827/head
Felix Schäfer 13 years ago
parent 4d8f3a7424
commit 5e8a6d282e
  1. 2
      lib/report/controller.rb

@ -313,7 +313,7 @@ module Report::Controller
##
# Override in subclass if you like
def is_public_sql(val=true)
"(is_public = #{val ? '1' : '0'})"
"(is_public = #{val ? ActiveRecord::Base.connection.quoted_true : ActiveRecord::Base.connection.quoted_false})"
end
##

Loading…
Cancel
Save