blob: 9708887075761f329bf336838551e523c69f5b69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module Arel
module Visitors
###
# This class produces SQL for JOIN clauses but omits the "single-source"
# part of the Join grammar:
#
# http://www.sqlite.org/syntaxdiagrams.html#join-source
#
# This visitor is used in SelectManager#join_sql and is for backwards
# compatibility with Arel V1.0
module JoinSql
private
def visit_Arel_Nodes_SelectCore o, a
o.source.right.map { |j| visit j, a }.join ' '
end
end
end
end
|