summaryrefslogtreecommitdiffstats
path: root/tests/test_parseutils.py
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@newrelic.com>2014-12-26 00:32:56 -0800
committerAmjith Ramanujam <amjith@newrelic.com>2014-12-26 00:32:56 -0800
commit9763ddb95cec76b94ae6c1231415275d9161cbe5 (patch)
treebcf8317859d3a3f450e728a948227321b18eb5a3 /tests/test_parseutils.py
parentce1ec1917970b7958280992b3f0ac44896c4b4d4 (diff)
Fix the table parsing for update and add a test.
Diffstat (limited to 'tests/test_parseutils.py')
-rw-r--r--tests/test_parseutils.py5
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']