Explicitly test various comment syntaxes.

This commit is contained in:
Thomas G. Lockhart 1997-09-18 03:52:43 +00:00
parent c407a38742
commit 1d9ad887cd
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
QUERY: SELECT 'trailing' AS first;
first
--------
trailing
(1 row)
QUERY:
SELECT /* embedded single line */ 'embedded' AS second;
second
--------
embedded
(1 row)
QUERY: SELECT /* both embedded and trailing single line */ 'both' AS third;
third
-----
both
(1 row)
QUERY:
SELECT 'before multi-line' AS fourth;
fourth
-----------------
before multi-line
(1 row)
QUERY: /* This is an example of SQL which should not execute:
* select 'multi-line';
*/
SELECT 'after multi-line' AS fifth;
fifth
----------------
after multi-line
(1 row)