From 8ed3ab00f1ba8cdf48dea4ca28d2d3a7e73396ab Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 21 Feb 2011 15:14:29 -0800 Subject: Lock should be a unary node --- lib/arel/visitors/mysql.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/arel/visitors/mysql.rb') diff --git a/lib/arel/visitors/mysql.rb b/lib/arel/visitors/mysql.rb index 8f9c3cc809..dad4d5e3b2 100644 --- a/lib/arel/visitors/mysql.rb +++ b/lib/arel/visitors/mysql.rb @@ -3,8 +3,8 @@ module Arel class MySQL < Arel::Visitors::ToSql private def visit_Arel_Nodes_Lock o - if o.locking.is_a?(String) - o.locking + if o.expr.is_a?(String) + o.expr else "FOR UPDATE" end -- cgit v1.2.3