Fix lateral join in Qx

This commit is contained in:
Eric Schultz 2019-01-24 14:24:00 -06:00
parent f8992794e7
commit 0ae7c9c503

View file

@ -311,7 +311,7 @@ class Qx
def join_lateral(join_name, select_statement, success_condition=true) def join_lateral(join_name, select_statement, success_condition=true)
@tree[:JOIN_LATERAL] ||= [] @tree[:JOIN_LATERAL] ||= []
@tree[:JOIN_LATERAL] += {name: join_name, select_statement: select_statement, condition: success_condition} @tree[:JOIN_LATERAL].concat([{join_name: join_name, select_statement: select_statement, success_condition: success_condition}])
self self
end end