mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 15:11:18 +02:00
Fix quote/doublequote handling.
This commit is contained in:
parent
b847d29785
commit
3f53311088
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.4 1996/10/23 07:39:39 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.5 1996/11/15 18:37:37 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -105,7 +105,9 @@ insert { return(INSERT_TUPLE); }
|
|||||||
return(ID);
|
return(ID);
|
||||||
}
|
}
|
||||||
{sid} {
|
{sid} {
|
||||||
yylval.ival = EnterString(scanstr((char*)yytext));
|
yytext[strlen(yytext)-1] = '\0'; /* strip off quotes */
|
||||||
|
yylval.ival = EnterString(scanstr((char*)yytext+1));
|
||||||
|
yytext[strlen(yytext)] = '"'; /* restore quotes */
|
||||||
return(ID);
|
return(ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user