]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/composite_primary_keys-1.1.0/README_DB2.txt
b69505fdbb0a9dc1d8eea21720b29353479613c5
[rails.git] / vendor / gems / composite_primary_keys-1.1.0 / README_DB2.txt
1 Composite Primary key support for db2 
2
3 == Driver Support ==
4
5 DB2 support requires the IBM_DB driver provided by http://rubyforge.org/projects/rubyibm/
6 project. Install using gem install ibm_db. Tested against version 0.60 of the driver.
7 This rubyforge project appears to be permenant location for the IBM adapter.
8 Older versions of the driver available from IBM Alphaworks will not work. 
9
10 == Driver Bug and workaround provided as part of this plugin ==
11
12 Unlike the basic quote routine available for Rails AR, the DB2 adapter's quote
13 method doesn't return " column_name = 1 " when string values (integers in string type variable) 
14 are passed for quoting numeric column. Rather it returns "column_name = '1'. 
15 DB2 doesn't accept single quoting numeric columns in SQL. Currently, as part of 
16 this plugin a fix is provided for the DB2 adapter since this plugin does 
17 pass string values like this. Perhaps a patch should be sent to the DB2 adapter
18 project for a permanant fix.
19
20 == Database Setup ==
21
22 Database must be manually created using a separate command. Read the rake task
23 for creating tables and change the db name, user and passwords accordingly.
24
25 == Tested Database Server version ==
26
27 This is tested against DB2 v9.1 in Ubuntu Feisty Fawn (7.04)
28
29 == Tested Database Client version ==
30
31 This is tested against DB2 v9.1 in Ubuntu Feisty Fawn (7.04)
32
33