Skip to content

Commit

Permalink
Add test_insert_ignore_with_comments test cases for #163
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Jun 10, 2021
1 parent fd54bcb commit a104954
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_getting_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,3 +444,13 @@ def test_get_tables_with_leading_digits():
assert ["0020_big_table"] == Parser(
"SELECT t.val as value, count(*) FROM 0020_big_table"
).tables


def test_insert_ignore_with_comments():
assert ["bar"] == Parser(
"INSERT IGNORE /* foo */ INTO bar VALUES (1, '123', '2017-01-01');"
).tables

assert ["bar"] == Parser(
"/* foo */ INSERT IGNORE INTO bar VALUES (1, '123', '2017-01-01');"
).tables

0 comments on commit a104954

Please sign in to comment.