ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Provide a library function to detect the database type used (Feature #112)
Description
ActiveRecord::Base.connection.adapter_name
works not fully reliable for multiple adapter variants used in the wild. One example is the difference between MySQL
for the mysql adapter and mysql2
for the mysql2 adapter.
For the rare cases where it is necessary to distinguish database types for specific SQL code, detection should be done reliable and in a single place to update it when necessary.
Associated revisions
[#112] Add ChiliProject::Database
This module can be used to gather information about the currently used
database.
[#112] Adapt database switches to use ChiliProject::Database
[#112] Fix failing raw version for postgres
Load the SQLite3 lib for the test to work. #112
[#112] Properly stub SQLite3 for version tests
[#112] Fix tests for jruby
History
Updated by Felix Schäfer at 2011-02-01 10:49 pm
- Status set to Open
Updated by Holger Just at 2011-05-15 09:18 pm
Pull request at https://github.com/chiliproject/chiliproject/pull/57
- Status changed from Open to Ready for review
Updated by Felix Schäfer at 2011-05-16 08:39 am
Haven't tested it, but looks sound to me.
- Target version set to 1.4.0
Updated by Felix Schäfer at 2011-05-19 09:29 pm
Merged in 6a55e9e7389647525f869fc168948ece04efa275, moved to unstable for inclusion in 2.0.0 though.
- Target version changed from 1.4.0 to 2.0.0
- Status changed from Ready for review to Closed