Skip to content

Commit b0df887

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 parent ba23588 commit b0df887

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy