From 36b54847cbbe0bf393b8dc3a03b3eb76a3e4788e Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Thu, 18 Sep 1997 03:54:19 +0000
Subject: [PATCH] Add explicit test for various comment syntaxes.

---
 src/test/regress/sql/comments.sql | 16 ++++++++++++++++
 src/test/regress/sql/tests        |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644 src/test/regress/sql/comments.sql

diff --git a/src/test/regress/sql/comments.sql b/src/test/regress/sql/comments.sql
new file mode 100644
index 00000000000..070917da657
--- /dev/null
+++ b/src/test/regress/sql/comments.sql
@@ -0,0 +1,16 @@
+--
+-- Comments
+--
+
+SELECT 'trailing' AS first; -- trailing single line
+SELECT /* embedded single line */ 'embedded' AS second;
+SELECT /* both embedded and trailing single line */ 'both' AS third; -- trailing single line
+
+SELECT 'before multi-line' AS fourth;
+/* This is an example of SQL which should not execute:
+ * select 'multi-line';
+ */
+SELECT 'after multi-line' AS fifth;
+
+/* and this is the end of the file */
+
diff --git a/src/test/regress/sql/tests b/src/test/regress/sql/tests
index 30d26676251..0e47432c8ea 100644
--- a/src/test/regress/sql/tests
+++ b/src/test/regress/sql/tests
@@ -27,6 +27,7 @@ reltime
 abstime
 tinterval
 horology
+comments
 create_function_1
 create_type
 create_table
-- 
GitLab