Skip to content

Commit 8286984

Browse files
committed
Formatting
1 parent 8d4c6bc commit 8286984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arel/visitors/sqlserver.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def visit_Arel_Nodes_UpdateStatement(o, collector)
7979

8080
# Same as PostgreSQL except we need to add limit if using subquery.
8181
def prepare_update_statement(o)
82-
if has_join_sources?(o) && !has_limit_or_offset_or_orders?(o) && !has_group_by_and_having?(o) && (o.relation.right.first.is_a?(Arel::Nodes::InnerJoin))
82+
if has_join_sources?(o) && !has_limit_or_offset_or_orders?(o) && !has_group_by_and_having?(o) && o.relation.right.first.is_a?(Arel::Nodes::InnerJoin)
8383
o
8484
else
8585
o.limit = Nodes::Limit.new(9_223_372_036_854_775_807) if o.orders.any? && o.limit.nil?

0 commit comments

Comments
 (0)