Skip to content

Commit

Permalink
Fixed cross-products of bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Gearon committed Aug 18, 2021
1 parent 28549f8 commit 3ccaa09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/asami/query.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
(throw (ex-info "Outer product between bindings should have distinct names" {:duplicate-names n})))
(with-meta
(for [row-l leftb row-r rightb]
(concat row-l row-r))
(vec (concat row-l row-r)))
{:cols (into namesl namesr)})))

(s/defn symb?
Expand Down
1 change: 1 addition & 0 deletions test/asami/query_internals_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
(is (= [[5]] bds))
(is (= '[?a] (:cols (meta bds))))
(is (= [[5 6]] bds2))
(is (vector? (first bds2)))
(is (= '[?a ?b] (:cols (meta bds2))))
(is (= [[5]] bds3))
(is (= '[?a] (:cols (meta bds3))))))
Expand Down

0 comments on commit 3ccaa09

Please sign in to comment.