diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-10-15 01:12:21 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-10-15 01:12:21 +0000 |
commit | b0df88745d0faec54a9264e95c691d8024a00c4d (patch) | |
tree | 2dbf830a69de096da90cfdd741882f9cdb5fc981 /src | |
parent | ba2358896ab0417d9ce9f6cb283e1212fc6a84f3 (diff) | |
download | postgresql-b0df88745d0faec54a9264e95c691d8024a00c4d.tar.gz postgresql-b0df88745d0faec54a9264e95c691d8024a00c4d.zip |
Include SQL/92 string continuation across newlines.
Allows the following example:
select 'first string'
'---'
'last string';
to be output as 'first string---last string'.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/scan.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 7134e768d86..be5149683ff 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -8,7 +8,7 @@ * * * 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 [^\\']* xqembedded "\\'" xqliteral [\\](.|\n) +xqcat {quote}{space}*\n{space}*{quote} xcline [\/][\*].*[\*][\/]{space}*\n* xcstart [\/][\*]{op_and_self}* @@ -186,6 +187,8 @@ other . memcpy(literal+llen, yytext, yyleng+1); llen += yyleng; } +<xq>{xqcat} { + } <xm>{space}* { /* ignore */ } <xm>{xmstop} { |