Commit 6b19803e authored by Peter Eisentraut's avatar Peter Eisentraut

Make a pstrdup copy of the literalbuf when scanning a bit string. Other-

wise the next bit string in the same command clobbers the previous ones.
parent a933ee38
......@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.82 2000/11/02 23:20:27 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.83 2000/11/16 22:47:44 petere Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -289,7 +289,7 @@ other .
if (literalbuf[strspn(literalbuf + 1, "01") + 1] != '\0')
elog(ERROR, "invalid bit string input: '%s'",
literalbuf);
yylval.str = literalbuf;
yylval.str = pstrdup(literalbuf);
return BITCONST;
}
<xh>{xhinside} |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment