diff options
author | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-26 00:32:56 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith@newrelic.com> | 2014-12-26 00:32:56 -0800 |
commit | 9763ddb95cec76b94ae6c1231415275d9161cbe5 (patch) | |
tree | bcf8317859d3a3f450e728a948227321b18eb5a3 /tests/test_parseutils.py | |
parent | ce1ec1917970b7958280992b3f0ac44896c4b4d4 (diff) |
Fix the table parsing for update and add a test.
Diffstat (limited to 'tests/test_parseutils.py')
-rw-r--r-- | tests/test_parseutils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_parseutils.py b/tests/test_parseutils.py index 63198d57..0d299786 100644 --- a/tests/test_parseutils.py +++ b/tests/test_parseutils.py @@ -27,3 +27,8 @@ def test_select_with_hanging_comma_multiple_tables(): def test_simple_insert_single_table(): tables = extract_tables('insert into abc (id, name) values (1, "def")') assert tables == ['abc'] + +def test_simple_update_table(): + import pdb; pdb.set_trace() + tables = extract_tables('update abc set id = 1') + assert tables == ['abc'] |