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

Commitb0df887

Browse files
author
Thomas G. Lockhart
committed
Include SQL/92 string continuation across newlines.
Allows the following example: select 'first string' '---' 'last string'; to be output as 'first string---last string'.
1 parentba23588 commitb0df887

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/parser/scan.l

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.23 1997/09/25 14:10:23 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.24 1997/10/15 01:12:21 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -94,6 +94,7 @@ xqdouble{quote}{quote}
9494
xqinside[^\\']*
9595
xqembedded"\\'"
9696
xqliteral[\\](.|\n)
97+
xqcat{quote}{space}*\n{space}*{quote}
9798

9899
xcline[\/][\*].*[\*][\/]{space}*\n*
99100
xcstart[\/][\*]{op_and_self}*
@@ -186,6 +187,8 @@ other.
186187
memcpy(literal+llen, yytext, yyleng+1);
187188
llen += yyleng;
188189
}
190+
<xq>{xqcat}{
191+
}
189192

190193
<xm>{space}*{/* ignore */ }
191194
<xm>{xmstop}{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp