On Sun, Mar 6, 2011 at 12:55 PM, Brad Phelan <[email protected]>wrote:

> Perhaps in postgres using a JOIN always requires an ON clause though in
> MySQL this is not always the case.
>

 It looks like MySQL is forgiving the missing ON in your first expression
thus executing your WHERE clause as a normal WHERE condition of the JOIN.
PostgreSQL is not forgiving you the missing ON statement in the join. It's
looking for that ON because it knows you're running a JOIN and the SQL
syntax states you need an ON. Not all databases follow or enforce the same
SQL rules so SQL code written for one will not port nicely over to the other
all the time.

B.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to