From 1d9ad887cd14e1401fb228f763a390f62a53a853 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Thu, 18 Sep 1997 03:52:43 +0000 Subject: [PATCH] Explicitly test various comment syntaxes. --- src/test/regress/expected/comments.out | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/test/regress/expected/comments.out diff --git a/src/test/regress/expected/comments.out b/src/test/regress/expected/comments.out new file mode 100644 index 0000000000..5fcfa44b86 --- /dev/null +++ b/src/test/regress/expected/comments.out @@ -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) + -- 2.40.0