Table "schema_owner.table_name" does not exist
----------------------------------------------
Key: JRUBY-2051
URL: http://jira.codehaus.org/browse/JRUBY-2051
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.1RC1
Environment: OS 10.5.1, Oracle 9
Reporter: David M. Holmes
Trying to use a table that I have permissions for but is not in my schema
generates the error: Table "schema_owner.table_name" does not exist. Works
correctly in C Ruby. My model uses set_table_name().
I've attempted to get around it by using find_by_sql() which made it work in my
controller, but whenever the object is referenced in a view template the same
error occurs.
Here is a partial trace:
/opt/tomcat/home/webapps/giveaways/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:1080:in
`columns'
/opt/tomcat/home/webapps/giveaways/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/base.rb:1088:in
`columns_hash'
/opt/tomcat/home/webapps/giveaways/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:63:in
`define_attribute_methods'
/opt/tomcat/home/webapps/giveaways/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:187:in
`method_missing'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email