]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add explicit test for various comment syntaxes.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 18 Sep 1997 03:54:19 +0000 (03:54 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Thu, 18 Sep 1997 03:54:19 +0000 (03:54 +0000)
src/test/regress/sql/comments.sql [new file with mode: 0644]
src/test/regress/sql/tests

diff --git a/src/test/regress/sql/comments.sql b/src/test/regress/sql/comments.sql
new file mode 100644 (file)
index 0000000..070917d
--- /dev/null
@@ -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 */
+
index 30d26676251eaee844a7b567b649622c1e64188f..0e47432c8ea2b01576d15dc4dd393c40a23bce1c 100644 (file)
@@ -27,6 +27,7 @@ reltime
 abstime
 tinterval
 horology
+comments
 create_function_1
 create_type
 create_table