The attached patch renames the Oracle adapter from "oci" to "oracle", retaining full backwards compatibility for all those folks currently referencing it as "oci".
To use the adapter with it's new name, simply change your database.yml file to include:
adapter: oracle
database: <your db name here>
Note that database is now used instead of host.
Also includes the following:
- supports Rails app generation with the --database=oracle option
- adds support for #disconnect!
- includes the fix from #4010 for :text datatype
Before applying the patch, several files must be removed or renamed in the repository. The required commands are:
cd trunk/activerecord/lib/active_record/connection_adapters/
svn mv oci_adapter.rb oracle_adapter.rb
cd trunk/activerecord/test/connections/
svn rm native_oci/connection.rb
svn rm native_oci
cd trunk/activerecord/test/fixtures/db_definitions/
svn rm create_oracle_db.sh
svn mv oci.drop.sql oracle.drop.sql
svn mv oci.sql oracle.sql
svn mv oci2.drop.sql oracle2.drop.sql
svn mv oci2.sql oracle2.sql
cd trunk/activerecord/test/
svn mv synonym_test_oci.rb synonym_test_oracle.rb
After this is done, the patch should apply cleanly.