Skip to content

Commit e008c68

Browse files
author
Thomas G. Lockhart
committed
One more change to recover v6.1.1 escaped-text input behavior.
Should be changed for v6.3!
1 parent 4293adc commit e008c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/scan.l

Lines changed: 3 additions & 3 deletions
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.22 1997/09/24 17:48:25 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.23 1997/09/25 14:10:23 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -183,8 +183,8 @@ other .
183183
<xq>{xqliteral} {
184184
if ((llen+yyleng-1) > (MAX_PARSE_BUFFER - 1))
185185
elog(WARN,"quoted string parse buffer of %d chars exceeded",MAX_PARSE_BUFFER);
186-
memcpy(literal+llen, yytext+1, yyleng);
187-
llen += yyleng-1;
186+
memcpy(literal+llen, yytext, yyleng+1);
187+
llen += yyleng;
188188
}
189189

190190
<xm>{space}* { /* ignore */ }

0 commit comments

Comments
 (0)