From 4a10824404ea535dd08309a8a4310088443d3aa8 Mon Sep 17 00:00:00 2001 From: "shaojin.wensj" Date: Thu, 6 Oct 2022 01:46:30 +0800 Subject: [PATCH] add testcase for issue #4931 --- .../druid/bvt/sql/postgresql/PostgresqlResourceTest.java | 4 ++++ core/src/test/resources/bvt/parser/postgresql-14.txt | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 core/src/test/resources/bvt/parser/postgresql-14.txt diff --git a/core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PostgresqlResourceTest.java b/core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PostgresqlResourceTest.java index 741c2999e3..04095c2834 100644 --- a/core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PostgresqlResourceTest.java +++ b/core/src/test/java/com/alibaba/druid/bvt/sql/postgresql/PostgresqlResourceTest.java @@ -91,6 +91,10 @@ public class PostgresqlResourceTest extends PGTest { exec_test("bvt/parser/postgresql-13.txt"); } + public void test_14() throws Exception { + exec_test("bvt/parser/postgresql-14.txt"); + } + public void exec_test(String resource) throws Exception { System.out.println(resource); InputStream is = null; diff --git a/core/src/test/resources/bvt/parser/postgresql-14.txt b/core/src/test/resources/bvt/parser/postgresql-14.txt new file mode 100644 index 0000000000..4d6cdef3ad --- /dev/null +++ b/core/src/test/resources/bvt/parser/postgresql-14.txt @@ -0,0 +1,3 @@ +refresh materialized view v1 +--------------------------- +REFRESH MATERIALIZED VIEW v1 \ No newline at end of file