From: Thomas G. Lockhart Date: Wed, 15 Oct 1997 01:12:21 +0000 (+0000) Subject: Include SQL/92 string continuation across newlines. X-Git-Tag: REL6_2_1~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0df88745d0faec54a9264e95c691d8024a00c4d;p=thirdparty%2Fpostgresql.git Include SQL/92 string continuation across newlines. Allows the following example: select 'first string' '---' 'last string'; to be output as 'first string---last string'. --- 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; } +{xqcat} { + } {space}* { /* ignore */ } {xmstop} {