aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/mysql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/visitors/mysql.rb')
-rw-r--r--lib/arel/visitors/mysql.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/mysql.rb b/lib/arel/visitors/mysql.rb
index 4f029245ac..763cf11aad 100644
--- a/lib/arel/visitors/mysql.rb
+++ b/lib/arel/visitors/mysql.rb
@@ -2,6 +2,10 @@ module Arel
module Visitors
class MySQL < Arel::Visitors::ToSql
private
+ def visit_Arel_Nodes_Bin o
+ "BINARY #{visit o.expr}"
+ end
+
def visit_Arel_Nodes_Lock o
visit o.expr
end