From 913b56e34edc7e3025feea4744dbd762774805c3 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Wed, 17 Apr 2019 11:47:09 +0200 Subject: Update changelog and authors and add regression test for #485. --- tests/test_regressions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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 -- cgit v1.2.1