This project is archived and is in readonly mode.
Vendor Supplied Database Adpaters are not loaded by Rails 3 on Windows
Reported by Praveen Devarao | October 20th, 2010 @ 11:25 AM
I am trying to use Rails 3 on windows with ruby-1.9.2-mingw and the ibm_db adapter to connect to db2. I create a new rails app
C:>rails new testapp -d ibm_db
and when I run the rails scaffold command
C:\testapp>rails generate scaffold Wood name:string
I get a load error as below
rescue in establish_connection': Please install the ibm_db
adapter:gem install activerecord-ibm_db-adapter
such file to load --
I have the ibm_db gem installed and I can successfully load the ibm_db_adapter.rb file from irb session (require 'active_record/connection_adapters/ibm_db_adapter') but rails is not able to see it.
Interestingly, this is seen only on Windows (works fine on Linux).
I tried placing the ibm_db_adapter.rb file from the ibm_db gem into the connection_adapters along with the other DB adapters in AR and it is seen that the ibm_db adapter is loaded successfully.
Hence looks like loading is not taking place properly on Windows. Might be this is seen with other commercial database adapters too (I've not tested though).
Comments and changes to this ticket
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Tickets have moved to Github
The new ticket tracker is available at https://github.com/rails/rails/issues