Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE
| От | Bryn Llewellyn |
|---|---|
| Тема | Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE |
| Дата | |
| Msg-id | 3D769C48-C001-43F3-B45A-68D3757A71EB@yugabyte.com обсуждение исходный текст |
| Ответ на | Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE (Christophe Pettus <xof@thebuild.com>) |
| Список | pgsql-general |
> xof@thebuild.com wrote: > > There is no first-class "identifier" type in PostgreSQL, so a function can't "return an identifier." It returns a stringwhich might, when placed into a larger string and processed as SQL, be lexically correct as an identifier. It takes huge discipline always to say "the text of an identifier" when the context of discourse is established. But, yes,I agree, when I wrote this: « ...the value of "quote_ident()" rests on the distinction between a name (what you provide with the function's actual argument)and an identifier (what it returns). » that the context of discourse was indeed established. I should have made no such assumption and written this instead: « ...the value of "quote_ident()" rests on the distinction between the text of a name (what you provide with the function'sactual argument) and the text of an identifier (what it returns). »
В списке pgsql-general по дате отправления: