Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36b5484

Browse files
author
Thomas G. Lockhart
committed
Add explicit test for various comment syntaxes.
1 parent1d9ad88 commit36b5484

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎src/test/regress/sql/comments.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--
2+
-- Comments
3+
--
4+
5+
SELECT'trailing'AS first;-- trailing single line
6+
SELECT/* embedded single line*/'embedded'AS second;
7+
SELECT/* both embedded and trailing single line*/'both'AS third;-- trailing single line
8+
9+
SELECT'before multi-line'AS fourth;
10+
/* This is an example of SQL which should not execute:
11+
* select 'multi-line';
12+
*/
13+
SELECT'after multi-line'AS fifth;
14+
15+
/* and this is the end of the file*/
16+

‎src/test/regress/sql/tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ reltime
2727
abstime
2828
tinterval
2929
horology
30+
comments
3031
create_function_1
3132
create_type
3233
create_table

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp