Skip to content

Commit 685d516

Browse files
author
Brian Pokosh
committed
Brackets should not be required
1 parent 4427801 commit 685d516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arel/visitors/sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def rowtable_projections(o)
281281
core.projections.map do |x|
282282
x.dup.tap do |p|
283283
p.sub! 'DISTINCT', "DISTINCT #{visit(o.limit)}".strip if o.limit
284-
p.gsub! /\[#{tn}\]\./, '[__rnt].'
284+
p.gsub! /\[?#{tn}\]?\./, '[__rnt].'
285285
p.strip!
286286
end
287287
end

0 commit comments

Comments
 (0)