Re: Question about the enum type
От | Tim Hart |
---|---|
Тема | Re: Question about the enum type |
Дата | |
Msg-id | 70326e4da0629ad3f8841234ceff7fb0@mac.com обсуждение исходный текст |
Ответ на | Re: Question about the enum type (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-general |
On Feb 18, 2008, at 12:10 AM, Tom Lane wrote: >> Would it have been reasonable to expect some kind of notice or warning >> message stating that 'position' was special, and >> <double-quote>position<double-quote> would be used instead? > > The way you phrase that makes me think you misunderstand what's > happening here. The name of the type isn't "position" with double > quotes, it's just position. You have to double-quote it when you > use it to prevent the parser from thinking that the special SQL > POSITION function call syntax is coming up. There are other ways > to do that though, for example if you write public.position (or > whatever > schema it's in) then you won't need double quotes. I did misunderstand. I understand now that the quotes are used to call out the string literally, and to avoid syntax-related parsing. Thanks for the help. Tim
В списке pgsql-general по дате отправления: