aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r--lib/arel/visitors/to_sql.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index 933edc15f2..8aec4cb147 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -90,6 +90,14 @@ key on UpdateManager using UpdateManager#key=
o.alias ? " AS #{visit o.alias}" : ''}"
end
+ def visit_Arel_Nodes_True o
+ "TRUE"
+ end
+
+ def visit_Arel_Nodes_False o
+ "FALSE"
+ end
+
def table_exists? name
@pool.table_exists? name
end