From 5e8a6d282e4b4aa7cb88443c3a6136509cb69ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Fri, 12 Aug 2011 09:28:38 +0200 Subject: [PATCH] PostgreSQL fix. --- lib/report/controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/report/controller.rb b/lib/report/controller.rb index fcaf72fce3..6bb01aeba2 100644 --- a/lib/report/controller.rb +++ b/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 ##