summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2019-04-17 11:47:09 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2019-04-17 11:47:09 +0200
commit913b56e34edc7e3025feea4744dbd762774805c3 (patch)
tree7acdd91b30d17f023ca57d1c9383ced6118f45be /tests
parent5076be029aba75d72aa52ab3da9f81e6aaf04cc1 (diff)
downloadsqlparse-913b56e34edc7e3025feea4744dbd762774805c3.tar.gz
Update changelog and authors and add regression test for #485.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_regressions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py
index 8b2cb48..ce8c41f 100644
--- a/tests/test_regressions.py
+++ b/tests/test_regressions.py
@@ -390,3 +390,13 @@ def test_issue484_comments_and_newlines():
' myId TINYINT NOT NULL,',
' myName VARCHAR2(100) NOT NULL',
')']))
+
+
+def test_issue485_split_multi():
+ p_sql = '''CREATE OR REPLACE RULE ruled_tab_2rules AS ON INSERT
+TO public.ruled_tab
+DO instead (
+select 1;
+select 2;
+);'''
+ assert len(sqlparse.split(p_sql)) == 1