Skip to content

Commit fc13675

Browse files
committed
table qualification
1 parent c943c66 commit fc13675

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/macaw/core_test.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,13 +643,15 @@ from foo")
643643

644644
(defn- node->clj [node]
645645
(cond
646-
(instance? Column node) [:column (.getColumnName node)]
646+
(instance? Column node) [:column
647+
(some-> (.getTable node) .getName)
648+
(.getColumnName node)]
647649
(instance? Table node) [:table (.getName node)]
648650
:else [(type node) node]))
649651

650652
(mw/fold-query (m/parsed-query
651653
;"select x from t, u, v left join w on w.id = v.id where t.id = u.id and u.id = v.id limit 3"
652-
"select a,b,c,d from t"
654+
"select t.a,b,c,d from t"
653655
)
654656
{:every-node (fn [acc node ctx]
655657
(let [id (m/scope-id (first ctx))

0 commit comments

Comments
 (0)