Bugs item #9085, was opened at 2007-03-06 17:27
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=9085&group_id=2014
Category: AR-JDBC
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: the 'columns' method incorrectly downcases mixed-case column names
Initial Comment:
I have a Rails app that works fine with mixed case names
when using Mysql directly. But when gaing via jdbcConnection
it recieves column names that have been incorrectly downcased.
-------In file ------
# File lib/active_record/connection_adapters/jdbc_adapter.rb,
def columns(table_name, name = nil)
----- The line ---------
column_name = column_name.downcase if metadata.storesUpperCaseIdentifiers
----- should probably be ------
column_name = column_name.downcase unless metadata.storesLowerCaseIdentifiers
------- (there are three, not two, possibilities to consider ) ------
Similar changes should probably be made to the two lines higher up
that changecase table names.
Regards - Mark
----------------------------------------------------------------------
>Comment By: Ola Bini (olabini)
Date: 2007-08-11 15:21
Message:
This was fixed a while ago.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=9085&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel