File tree Expand file tree Collapse file tree 4 files changed +25
-22
lines changed
active_record/connection_adapters Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change 11require 'base64'
2- require 'arel/visitors/sqlserver '
2+ require 'arel/arel_sqlserver '
33require 'arel/visitors/bind_visitor'
44require 'active_record'
55require 'active_record/base'
Original file line number Diff line number Diff line change 1+ require 'arel'
2+ require 'arel/select_manager_sqlserver'
3+ require 'arel/nodes_sqlserver'
4+ require 'arel/visitors/sqlserver'
5+ require 'arel/visitors/bind_visitor'
Original file line number Diff line number Diff line change 1+ module Arel
2+ module Nodes
3+
4+ # Extending the Ordering class to be comparison friendly which allows us to call #uniq on a
5+ # collection of them. See SelectManager#order for more details.
6+ class Ordering < Arel ::Nodes ::Unary
7+ def hash
8+ expr . hash
9+ end
10+ def ==( other )
11+ other . is_a? ( Arel ::Nodes ::Ordering ) && self . expr == other . expr
12+ end
13+ def eql? ( other )
14+ self == other
15+ end
16+ end
17+
18+ end
19+ end
Original file line number Diff line number Diff line change 1- require 'arel'
2- require 'arel/select_manager_sqlserver'
31module Arel
4-
5- module Nodes
6-
7- # Extending the Ordering class to be comparison friendly which allows us to call #uniq on a
8- # collection of them. See SelectManager#order for more details.
9- class Ordering < Arel ::Nodes ::Unary
10- def hash
11- expr . hash
12- end
13- def ==( other )
14- other . is_a? ( Arel ::Nodes ::Ordering ) && self . expr == other . expr
15- end
16- def eql? ( other )
17- self == other
18- end
19- end
20-
21- end
22-
232 module Visitors
243 class SQLServer < Arel ::Visitors ::ToSql
254
You can’t perform that action at this time.
0 commit comments