Add explicit test for various comment syntaxes.

REL6_4
Thomas G. Lockhart 29 years ago
parent 1d9ad887cd
commit 36b54847cb
  1. 16
      src/test/regress/sql/comments.sql
  2. 1
      src/test/regress/sql/tests

@ -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 */

@ -27,6 +27,7 @@ reltime
abstime
tinterval
horology
comments
create_function_1
create_type
create_table

Loading…
Cancel
Save