Re: Problems with ActiveRecord, Oracle adapter, find_by_sql, multi-table join - ORA-04043 error

Michael A. Schoen
Thu, 21 Sep 2006 04:31:36 -0000

> FROM schema.net_element ne, schema.equipment e1, schema.equipment e2,
>      schema.building b, schema.cust_loc cl, schema.location loc

>    set_table_name :location

> This error confuses me.  There clearly *is* a location table, or the
> query wouldn''t work in the first place.  Also, the fact that
I''m
> getting back an ORA-04043 indicates to me that, when I call
> loc.attributes, it''s calling out to the database *again* for some
> reason.  Why?

The problem is that your "Location" table appears to be in the schema
"schema", but you''re setting the table name to just
"location".

Try:

	set_table_name ''schema.location''


--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---