Re: [BUGS] BUG #2303: UPDATE from manual is incorrect

2006-03-09 Thread Malix
Excuse me if I was no very clear and I don't put you in right direction,But yes the problem is not with FROM but with ORDER BY or GROUP BY.As you can see in my query I need to GROUP BY modelloid ad aggregateon npezzi. To solve the problem I rewrite the query in the second for and encapsulated the

Re: [BUGS] BUG #2303: UPDATE from manual is incorrect

2006-03-08 Thread Tom Lane
I wrote: > "Massimo Fidanza" <[EMAIL PROTECTED]> writes: >> this query is not correct and doesn't work with postgresql 8.1. > It still works, if you enable add_missing_from. I take that back --- FROM is not the issue (indeed, it has one). The problem is the ORDER BY and LIMIT clauses. I dunno wh

Re: [BUGS] BUG #2303: UPDATE from manual is incorrect

2006-03-08 Thread Tom Lane
"Massimo Fidanza" <[EMAIL PROTECTED]> writes: > The query is the last but one > UPDATE employees SET last_closed_deal = deal.id > FROM accounts JOIN deals ON (account.id = deal.account_id) > WHERE deal.employee_id = employees.id > AND deal.name = 'Rocket Powered Skates' > AND accou

[BUGS] BUG #2303: UPDATE from manual is incorrect

2006-03-08 Thread Massimo Fidanza
The following bug has been logged online: Bug reference: 2303 Logged by: Massimo Fidanza Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1 Operating system: Linux Description:UPDATE from manual is incorrect Details: Hi all, I have an update similar to the one