| От | Tom Lane |
|---|---|
| Тема | Re: Error with DISTINCT and AS keywords |
| Дата | |
| Msg-id | 16887.1026310157@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Error with DISTINCT and AS keywords (Richard Huxton <dev@archonet.com>) |
| Список | pgsql-sql |
Richard Huxton <dev@archonet.com> writes:
> Does anyone know what type a quoted literal has?
It's assigned the placeholder type UNKNOWN until the parser can figure
out from context what type it should be. Unfortunately in this case
there's no context the parser knows how to work with.
> It does strike me as a little
> unexpected that a quoted string doesn't default to text.
Yeah, I have a TODO item to let unknown be resolved to text when the
only available context is an ORDER BY (or equivalently DISTINCT)
request. I've looked at this a little bit but not figured out where
the cleanest place to do it is.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера