| От | Tom Lane |
|---|---|
| Тема | Re: Order by in stored functions |
| Дата | |
| Msg-id | 14161.968083838@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Order by in stored functions (Andreas Tille <tillea@rki.de>) |
| Ответы |
Re: Order by in stored functions
|
| Список | pgsql-sql |
Andreas Tille <tillea@rki.de> writes:
> I've got the following error message:
> ERROR: function declared to return varchar returns multiple values in
> final retrieve
This is a bug that has already been fixed in current sources: the check
that makes sure your select produces only one varchar column is
mistakenly counting the hidden IdSort column that's needed to sort by.
I don't know of any good workaround in 7.0, short of patching the
erroneous code. Have you thought about using a view, rather than a
function returning set?
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера