Re: Re: Escaping strings for inclusion into SQL queries
От | Peter Eisentraut |
---|---|
Тема | Re: Re: Escaping strings for inclusion into SQL queries |
Дата | |
Msg-id | Pine.LNX.4.30.0109040016270.4304-100000@peter.localdomain обсуждение исходный текст |
Ответ на | Re: Re: Escaping strings for inclusion into SQL queries (Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE>) |
Ответы |
Re: Re: Escaping strings for inclusion into SQL queries
|
Список | pgsql-hackers |
Florian Weimer writes: > In addition, there seems to be a bug in the treatment of "" escapes in > identifiers. 'SELECT """";' yields the error message 'Attribute '""' > not found ' (not '"'!) or even 'Attribute '""\' not found', depending > on the queries executed before. A bug indeed. RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/parser/scan.l,v retrieving revision 1.88 diff -u -r1.88 scan.l --- scan.l 2001/03/22 17:41:47 1.88 +++ scan.l 2001/09/03 22:11:46 @@ -375,7 +375,7 @@ return IDENT; }<xd>{xddouble} { - addlit(yytext, yyleng-1); + addlit(yytext+1, yyleng-1); }<xd>{xdinside} { addlit(yytext, yyleng); ===end -- Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
В списке pgsql-hackers по дате отправления: