aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/sql/comments.sql16
-rw-r--r--src/test/regress/sql/tests1
2 files changed, 17 insertions, 0 deletions
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