| От | Jan Bakuwel |
|---|---|
| Тема | Re: Different order by behaviour depending on where clause? |
| Дата | |
| Msg-id | 4EAC6D46.1060602@greenpeace.org обсуждение исходный текст |
| Ответ на | Re: Different order by behaviour depending on where clause? (Phil Couling <couling@gmail.com>) |
| Список | pgsql-sql |
Hi Phil, Thanks for your reply. On 28/10/11 23:25, Phil Couling wrote: > Hi Jan > > It is my understanding that a select query without "order by" has an > undefined order. > Though I'm sure you understand the dangers of using something which is > undefined, I'm going reiterate them here: I think you might have misread my email, I'm quoting: "I have a compound query with some grouping, having and order by's saved as a view, say with name "myview". So... I am using explicit order by's. The problem (now solved) was that I somewhere subtle "hidden" in one of my subqueries, type casted a row (varchar to int) but omitted to do the same one or two "levels up". This messed up my sorting. Once I applied the type cast in every single bit of statement or all (sub)selects, all was OK. kind regards, Jan
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера