diff --git a/src/test/regress/sql/comments.sql b/src/test/regress/sql/comments.sql new file mode 100644 index 0000000000000000000000000000000000000000..070917da657eb95934efb51ad0c64ccaba61f1ae --- /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 30d26676251eaee844a7b567b649622c1e64188f..0e47432c8ea2b01576d15dc4dd393c40a23bce1c 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