Oracle column names by default are case-insensitive, but treated as upcase; for neatness, we‘ll downcase within Rails. EXCEPT that folks CAN quote their column names when creating Oracle tables, which makes then case-sensitive. I don‘t know anybody who does this, but we‘ll handle the theoretical case of a camelCase column name. I imagine other dbs handle this different, since there‘s a unit test that‘s currently failing test_oci.
# File activerecord/lib/active_record/connection_adapters/oracle_adapter.rb, line 507 def oracle_downcase(column_name) column_name =~ /[a-z]/ ? column_name : column_name.downcase end