This project is archived and is in readonly mode.
[PATCH] Fixed non-standard SQL generated by preloading has_and_belongs_to_many associations
-
Jeremy Kemper
- Milestone set to 2.1.1
- State changed from new to open
- Assigned user set to Jeremy Kemper
-
Repository
- State changed from open to resolved
(from [4689496b525526a776004c4986d98b0ce62309d5]) Fixed non-standard SQL generated by preloading has_and_belongs_to_many association. [#394 state:resolved]
-
Don McClean
- Tag set to activerecord, bug, has_and_belongs_to_many, patch, standard-sql
I manually patched my source with your fix and still got an
error. I am running Oracle 9.2. The second portion of the
above example 'as t0' was still causing an error. Removing the
'as' fixed the problem.
Regards,
Don McClean
-
Antonio Cangiano
Don, this must be an Oracle peculiarity. Using the "as t0" is standard SQL. It's OK to omit it though, if it helps Oracle, because omitting it respects the standard too
-
Don McClean
Antonio,
Since removing the 'as' still would be standard SQL, it
would be appreciated if you could remove it.
Thanks and Regards,
Don McClean
-
Brent Miller
Since this ticket seems to be closed, the "as" issue is being addressed in ticket #1405 [PATCH] Fixed non-standard SQL generated by preloading has_and_belongs_to_man...
