From 0ae7c9c503672ff19d7e26c71cdab217ec464147 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 24 Jan 2019 14:24:00 -0600 Subject: [PATCH] Fix lateral join in Qx --- gems/ruby-qx/lib/qx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gems/ruby-qx/lib/qx.rb b/gems/ruby-qx/lib/qx.rb index 7132413f..b612563a 100644 --- a/gems/ruby-qx/lib/qx.rb +++ b/gems/ruby-qx/lib/qx.rb @@ -311,7 +311,7 @@ class Qx def join_lateral(join_name, select_statement, success_condition=true) @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 end