mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 07:01:20 +02:00
Include SQL/92 string continuation across newlines.
Allows the following example: select 'first string' '---' 'last string'; to be output as 'first string---last string'.
This commit is contained in:
parent
ba2358896a
commit
b0df88745d
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.23 1997/09/25 14:10:23 thomas Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.24 1997/10/15 01:12:21 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -94,6 +94,7 @@ xqdouble {quote}{quote}
|
|||||||
xqinside [^\\']*
|
xqinside [^\\']*
|
||||||
xqembedded "\\'"
|
xqembedded "\\'"
|
||||||
xqliteral [\\](.|\n)
|
xqliteral [\\](.|\n)
|
||||||
|
xqcat {quote}{space}*\n{space}*{quote}
|
||||||
|
|
||||||
xcline [\/][\*].*[\*][\/]{space}*\n*
|
xcline [\/][\*].*[\*][\/]{space}*\n*
|
||||||
xcstart [\/][\*]{op_and_self}*
|
xcstart [\/][\*]{op_and_self}*
|
||||||
@ -186,6 +187,8 @@ other .
|
|||||||
memcpy(literal+llen, yytext, yyleng+1);
|
memcpy(literal+llen, yytext, yyleng+1);
|
||||||
llen += yyleng;
|
llen += yyleng;
|
||||||
}
|
}
|
||||||
|
<xq>{xqcat} {
|
||||||
|
}
|
||||||
|
|
||||||
<xm>{space}* { /* ignore */ }
|
<xm>{space}* { /* ignore */ }
|
||||||
<xm>{xmstop} {
|
<xm>{xmstop} {
|
||||||
|
Loading…
Reference in New Issue
Block a user