Skip to content

Commit 5138f12

Browse files
author
macbre
committed
Add a test case for #94
1 parent 604ebb9 commit 5138f12

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/test_query.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,3 +572,8 @@ def test_unions():
572572
assert ["tab1", "tab2"] == get_query_tables(
573573
"select col1, col2, col3 from tab1 union all select col4, col5, col6 from tab2"
574574
)
575+
576+
# @see https://github.com/macbre/sql-metadata/issues/94
577+
assert ["d", "g"] == get_query_tables(
578+
"SELECT a,b,c FROM d UNION ALL SELECT e,f FROM g"
579+
)

0 commit comments

Comments
 (0)