Merge pull request #139 from houdiniproject/qx_fix

Fix lateral join in Qx
This commit is contained in:
Eric Schultz 2019-01-24 14:43:52 -06:00 committed by GitHub
commit cd180676c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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