Add explicit test for various comment syntaxes.
This commit is contained in:
parent
1d9ad887cd
commit
36b54847cb
16
src/test/regress/sql/comments.sql
Normal file
16
src/test/regress/sql/comments.sql
Normal file
@ -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…
x
Reference in New Issue
Block a user