ActiveRecord::Base#columns() repeats column data when tables are duplicated in 
different schemas in Oracle 9i
-------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-1115
                 URL: http://jira.codehaus.org/browse/JRUBY-1115
             Project: JRuby
          Issue Type: Bug
          Components: ActiveRecord-JDBC
    Affects Versions: JRuby 1.0.0RC3
            Reporter: Julian Doherty
            Assignee: Thomas E Enebo
            Priority: Minor


When the same table definitions are created in multiple schemas in the same 
Oracle database, calls to ActiveRecord::Base#columns() repeat column info.
(as happens when you've got dev/test on the same database)

eg:
dev schema contains table "bazes", with columns "foo" and "bar"
test schema contains table "bazes", also with columns "foo" and "bar"

When operating in the test environment, if a call is made to 
Baz.columns.map{|c| c.name}
the resuting array contains ['foo','bar','foo','bar']

-- 
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

Reply via email to