ibm_db 2.5.26-universal-darwin-14 → 2.6.1-universal-darwin-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGES +11 -0
 - data/MANIFEST +14 -14
 - data/README +225 -225
 - data/ext/Makefile.nt32 +181 -181
 - data/ext/Makefile.nt32.191 +212 -212
 - data/ext/extconf.rb +264 -261
 - data/ext/extconf_MacOS.rb +269 -0
 - data/ext/ibm_db.c +11879 -11793
 - data/ext/ruby_ibm_db.h +241 -240
 - data/ext/ruby_ibm_db_cli.c +851 -845
 - data/ext/ruby_ibm_db_cli.h +500 -489
 - data/init.rb +41 -41
 - data/lib/IBM_DB.rb +27 -19
 - data/lib/active_record/connection_adapters/ibm_db_adapter.rb +3339 -3289
 - data/lib/active_record/connection_adapters/ibmdb_adapter.rb +1 -1
 - data/lib/active_record/vendor/db2-i5-zOS.yaml +328 -328
 - data/test/cases/adapter_test.rb +207 -207
 - data/test/cases/associations/belongs_to_associations_test.rb +711 -711
 - data/test/cases/associations/cascaded_eager_loading_test.rb +181 -181
 - data/test/cases/associations/has_and_belongs_to_many_associations_test.rb +851 -851
 - data/test/cases/associations/join_model_test.rb +743 -743
 - data/test/cases/attribute_methods_test.rb +822 -822
 - data/test/cases/base_test.rb +2133 -2133
 - data/test/cases/calculations_test.rb +482 -482
 - data/test/cases/migration_test.rb +2408 -2408
 - data/test/cases/persistence_test.rb +642 -642
 - data/test/cases/query_cache_test.rb +257 -257
 - data/test/cases/relations_test.rb +1182 -1182
 - data/test/cases/schema_dumper_test.rb +256 -256
 - data/test/cases/transaction_callbacks_test.rb +300 -300
 - data/test/cases/validations/uniqueness_validation_test.rb +299 -299
 - data/test/cases/xml_serialization_test.rb +408 -408
 - data/test/config.yml +154 -154
 - data/test/connections/native_ibm_db/connection.rb +43 -43
 - data/test/ibm_db_test.rb +24 -24
 - data/test/models/warehouse_thing.rb +4 -4
 - data/test/schema/schema.rb +751 -751
 - metadata +6 -8
 - data/lib/linux/rb18x/ibm_db.bundle +0 -0
 - data/lib/linux/rb19x/ibm_db.bundle +0 -0
 - data/lib/linux/rb20x/ibm_db.bundle +0 -0
 - data/lib/linux/rb21x/ibm_db.bundle +0 -0
 
    
        data/test/config.yml
    CHANGED
    
    | 
         @@ -1,154 +1,154 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            default_connection: <%= defined?(JRUBY_VERSION) ? 'jdbcsqlite3' : 'sqlite3' %>
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            connections:
         
     | 
| 
       4 
     | 
    
         
            -
              jdbcderby:
         
     | 
| 
       5 
     | 
    
         
            -
                arunit:  activerecord_unittest
         
     | 
| 
       6 
     | 
    
         
            -
                arunit2: activerecord_unittest2
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
              jdbch2:
         
     | 
| 
       9 
     | 
    
         
            -
                arunit:  activerecord_unittest
         
     | 
| 
       10 
     | 
    
         
            -
                arunit2: activerecord_unittest2
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
              jdbchsqldb:
         
     | 
| 
       13 
     | 
    
         
            -
                arunit:  activerecord_unittest
         
     | 
| 
       14 
     | 
    
         
            -
                arunit2: activerecord_unittest2
         
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
              jdbcmysql:
         
     | 
| 
       17 
     | 
    
         
            -
                arunit:
         
     | 
| 
       18 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       19 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       20 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       21 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       22 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
              jdbcpostgresql:
         
     | 
| 
       25 
     | 
    
         
            -
                arunit:
         
     | 
| 
       26 
     | 
    
         
            -
                  username: <%= ENV['user'] || 'rails' %>
         
     | 
| 
       27 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       28 
     | 
    
         
            -
                  username: <%= ENV['user'] || 'rails' %>
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
              jdbcsqlite3:
         
     | 
| 
       31 
     | 
    
         
            -
                arunit:
         
     | 
| 
       32 
     | 
    
         
            -
                  database: <%= FIXTURES_ROOT %>/fixture_database.sqlite3
         
     | 
| 
       33 
     | 
    
         
            -
                  timeout:  5000
         
     | 
| 
       34 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       35 
     | 
    
         
            -
                  database: <%= FIXTURES_ROOT %>/fixture_database_2.sqlite3
         
     | 
| 
       36 
     | 
    
         
            -
                  timeout:  5000
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
              db2:
         
     | 
| 
       39 
     | 
    
         
            -
                arunit:
         
     | 
| 
       40 
     | 
    
         
            -
                  host:     localhost
         
     | 
| 
       41 
     | 
    
         
            -
                  username: arunit
         
     | 
| 
       42 
     | 
    
         
            -
                  password: arunit
         
     | 
| 
       43 
     | 
    
         
            -
                  database: arunit
         
     | 
| 
       44 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       45 
     | 
    
         
            -
                  host:     localhost
         
     | 
| 
       46 
     | 
    
         
            -
                  username: arunit
         
     | 
| 
       47 
     | 
    
         
            -
                  password: arunit
         
     | 
| 
       48 
     | 
    
         
            -
                  database: arunit2
         
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
              ibm_db:
         
     | 
| 
       51 
     | 
    
         
            -
                arunit:
         
     | 
| 
       52 
     | 
    
         
            -
                  username: db2user
         
     | 
| 
       53 
     | 
    
         
            -
                  password: secret
         
     | 
| 
       54 
     | 
    
         
            -
                  database: railsdb
         
     | 
| 
       55 
     | 
    
         
            -
                  start_id: 1000
         
     | 
| 
       56 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       57 
     | 
    
         
            -
                  username: db2user
         
     | 
| 
       58 
     | 
    
         
            -
                  password: secret
         
     | 
| 
       59 
     | 
    
         
            -
                  database: railsdb
         
     | 
| 
       60 
     | 
    
         
            -
                  start_id: 1000
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
              firebird:
         
     | 
| 
       63 
     | 
    
         
            -
                arunit:
         
     | 
| 
       64 
     | 
    
         
            -
                  host: localhost
         
     | 
| 
       65 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       66 
     | 
    
         
            -
                  password: rails
         
     | 
| 
       67 
     | 
    
         
            -
                  charset: UTF8
         
     | 
| 
       68 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       69 
     | 
    
         
            -
                  host: localhost
         
     | 
| 
       70 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       71 
     | 
    
         
            -
                  password: rails
         
     | 
| 
       72 
     | 
    
         
            -
                  charset: UTF8
         
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
              frontbase:
         
     | 
| 
       75 
     | 
    
         
            -
                arunit:
         
     | 
| 
       76 
     | 
    
         
            -
                  host: localhost
         
     | 
| 
       77 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       78 
     | 
    
         
            -
                  session_name: unittest-<%= $$ %>
         
     | 
| 
       79 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       80 
     | 
    
         
            -
                  host: localhost
         
     | 
| 
       81 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       82 
     | 
    
         
            -
                  session_name: unittest-<%= $$ %>
         
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
              mysql:
         
     | 
| 
       85 
     | 
    
         
            -
                arunit:
         
     | 
| 
       86 
     | 
    
         
            -
                  username: root
         
     | 
| 
       87 
     | 
    
         
            -
                  password: root123
         
     | 
| 
       88 
     | 
    
         
            -
                  port: 3306
         
     | 
| 
       89 
     | 
    
         
            -
                  database: railsdb
         
     | 
| 
       90 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       91 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       92 
     | 
    
         
            -
                  username: root
         
     | 
| 
       93 
     | 
    
         
            -
                  password: root123
         
     | 
| 
       94 
     | 
    
         
            -
                  port: 3306
         
     | 
| 
       95 
     | 
    
         
            -
                  database: railsdb
         
     | 
| 
       96 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
              mysql2:
         
     | 
| 
       99 
     | 
    
         
            -
                arunit:
         
     | 
| 
       100 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       101 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       102 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       103 
     | 
    
         
            -
                  username: rails
         
     | 
| 
       104 
     | 
    
         
            -
                  encoding: utf8
         
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
              openbase:
         
     | 
| 
       107 
     | 
    
         
            -
                arunit:
         
     | 
| 
       108 
     | 
    
         
            -
                  username: admin
         
     | 
| 
       109 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       110 
     | 
    
         
            -
                  username: admin
         
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
              oracle:
         
     | 
| 
       113 
     | 
    
         
            -
                 arunit:
         
     | 
| 
       114 
     | 
    
         
            -
                   adapter: oracle_enhanced
         
     | 
| 
       115 
     | 
    
         
            -
                   database: <%= ENV['ARUNIT_DB_NAME'] || 'orcl' %>
         
     | 
| 
       116 
     | 
    
         
            -
                   username: <%= ENV['ARUNIT_USER_NAME'] || 'arunit' %>
         
     | 
| 
       117 
     | 
    
         
            -
                   password: <%= ENV['ARUNIT_PASSWORD'] || 'arunit' %>
         
     | 
| 
       118 
     | 
    
         
            -
                   emulate_oracle_adapter: true
         
     | 
| 
       119 
     | 
    
         
            -
                 arunit2:
         
     | 
| 
       120 
     | 
    
         
            -
                   adapter: oracle_enhanced
         
     | 
| 
       121 
     | 
    
         
            -
                   database: <%= ENV['ARUNIT_DB_NAME'] || 'orcl' %>
         
     | 
| 
       122 
     | 
    
         
            -
                   username: <%= ENV['ARUNIT2_USER_NAME'] || 'arunit2' %>
         
     | 
| 
       123 
     | 
    
         
            -
                   password: <%= ENV['ARUNIT2_PASSWORD'] || 'arunit2' %>
         
     | 
| 
       124 
     | 
    
         
            -
                   emulate_oracle_adapter: true
         
     | 
| 
       125 
     | 
    
         
            -
             
     | 
| 
       126 
     | 
    
         
            -
              postgresql:
         
     | 
| 
       127 
     | 
    
         
            -
                arunit:
         
     | 
| 
       128 
     | 
    
         
            -
                  min_messages: warning
         
     | 
| 
       129 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       130 
     | 
    
         
            -
                  min_messages: warning
         
     | 
| 
       131 
     | 
    
         
            -
             
     | 
| 
       132 
     | 
    
         
            -
              sqlite3:
         
     | 
| 
       133 
     | 
    
         
            -
                arunit:
         
     | 
| 
       134 
     | 
    
         
            -
                  database: <%= FIXTURES_ROOT %>/fixture_database.sqlite3
         
     | 
| 
       135 
     | 
    
         
            -
                  timeout:  5000
         
     | 
| 
       136 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       137 
     | 
    
         
            -
                  database: <%= FIXTURES_ROOT %>/fixture_database_2.sqlite3
         
     | 
| 
       138 
     | 
    
         
            -
                  timeout:  5000
         
     | 
| 
       139 
     | 
    
         
            -
             
     | 
| 
       140 
     | 
    
         
            -
              sqlite3_mem:
         
     | 
| 
       141 
     | 
    
         
            -
                arunit:
         
     | 
| 
       142 
     | 
    
         
            -
                  adapter: sqlite3
         
     | 
| 
       143 
     | 
    
         
            -
                  database: ':memory:'
         
     | 
| 
       144 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       145 
     | 
    
         
            -
                  adapter: sqlite3
         
     | 
| 
       146 
     | 
    
         
            -
                  database: ':memory:'
         
     | 
| 
       147 
     | 
    
         
            -
             
     | 
| 
       148 
     | 
    
         
            -
              sybase:
         
     | 
| 
       149 
     | 
    
         
            -
                arunit:
         
     | 
| 
       150 
     | 
    
         
            -
                  host: database_ASE
         
     | 
| 
       151 
     | 
    
         
            -
                  username: sa
         
     | 
| 
       152 
     | 
    
         
            -
                arunit2:
         
     | 
| 
       153 
     | 
    
         
            -
                  host: database_ASE
         
     | 
| 
       154 
     | 
    
         
            -
                  username: sa
         
     | 
| 
      
 1 
     | 
    
         
            +
            default_connection: <%= defined?(JRUBY_VERSION) ? 'jdbcsqlite3' : 'sqlite3' %>
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            connections:
         
     | 
| 
      
 4 
     | 
    
         
            +
              jdbcderby:
         
     | 
| 
      
 5 
     | 
    
         
            +
                arunit:  activerecord_unittest
         
     | 
| 
      
 6 
     | 
    
         
            +
                arunit2: activerecord_unittest2
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              jdbch2:
         
     | 
| 
      
 9 
     | 
    
         
            +
                arunit:  activerecord_unittest
         
     | 
| 
      
 10 
     | 
    
         
            +
                arunit2: activerecord_unittest2
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
              jdbchsqldb:
         
     | 
| 
      
 13 
     | 
    
         
            +
                arunit:  activerecord_unittest
         
     | 
| 
      
 14 
     | 
    
         
            +
                arunit2: activerecord_unittest2
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
              jdbcmysql:
         
     | 
| 
      
 17 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 18 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 19 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 20 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 21 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 22 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              jdbcpostgresql:
         
     | 
| 
      
 25 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 26 
     | 
    
         
            +
                  username: <%= ENV['user'] || 'rails' %>
         
     | 
| 
      
 27 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 28 
     | 
    
         
            +
                  username: <%= ENV['user'] || 'rails' %>
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
              jdbcsqlite3:
         
     | 
| 
      
 31 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 32 
     | 
    
         
            +
                  database: <%= FIXTURES_ROOT %>/fixture_database.sqlite3
         
     | 
| 
      
 33 
     | 
    
         
            +
                  timeout:  5000
         
     | 
| 
      
 34 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 35 
     | 
    
         
            +
                  database: <%= FIXTURES_ROOT %>/fixture_database_2.sqlite3
         
     | 
| 
      
 36 
     | 
    
         
            +
                  timeout:  5000
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
              db2:
         
     | 
| 
      
 39 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 40 
     | 
    
         
            +
                  host:     localhost
         
     | 
| 
      
 41 
     | 
    
         
            +
                  username: arunit
         
     | 
| 
      
 42 
     | 
    
         
            +
                  password: arunit
         
     | 
| 
      
 43 
     | 
    
         
            +
                  database: arunit
         
     | 
| 
      
 44 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 45 
     | 
    
         
            +
                  host:     localhost
         
     | 
| 
      
 46 
     | 
    
         
            +
                  username: arunit
         
     | 
| 
      
 47 
     | 
    
         
            +
                  password: arunit
         
     | 
| 
      
 48 
     | 
    
         
            +
                  database: arunit2
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
              ibm_db:
         
     | 
| 
      
 51 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 52 
     | 
    
         
            +
                  username: db2user
         
     | 
| 
      
 53 
     | 
    
         
            +
                  password: secret
         
     | 
| 
      
 54 
     | 
    
         
            +
                  database: railsdb
         
     | 
| 
      
 55 
     | 
    
         
            +
                  start_id: 1000
         
     | 
| 
      
 56 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 57 
     | 
    
         
            +
                  username: db2user
         
     | 
| 
      
 58 
     | 
    
         
            +
                  password: secret
         
     | 
| 
      
 59 
     | 
    
         
            +
                  database: railsdb
         
     | 
| 
      
 60 
     | 
    
         
            +
                  start_id: 1000
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
              firebird:
         
     | 
| 
      
 63 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 64 
     | 
    
         
            +
                  host: localhost
         
     | 
| 
      
 65 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 66 
     | 
    
         
            +
                  password: rails
         
     | 
| 
      
 67 
     | 
    
         
            +
                  charset: UTF8
         
     | 
| 
      
 68 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 69 
     | 
    
         
            +
                  host: localhost
         
     | 
| 
      
 70 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 71 
     | 
    
         
            +
                  password: rails
         
     | 
| 
      
 72 
     | 
    
         
            +
                  charset: UTF8
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
              frontbase:
         
     | 
| 
      
 75 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 76 
     | 
    
         
            +
                  host: localhost
         
     | 
| 
      
 77 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 78 
     | 
    
         
            +
                  session_name: unittest-<%= $$ %>
         
     | 
| 
      
 79 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 80 
     | 
    
         
            +
                  host: localhost
         
     | 
| 
      
 81 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 82 
     | 
    
         
            +
                  session_name: unittest-<%= $$ %>
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
              mysql:
         
     | 
| 
      
 85 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 86 
     | 
    
         
            +
                  username: root
         
     | 
| 
      
 87 
     | 
    
         
            +
                  password: root123
         
     | 
| 
      
 88 
     | 
    
         
            +
                  port: 3306
         
     | 
| 
      
 89 
     | 
    
         
            +
                  database: railsdb
         
     | 
| 
      
 90 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 91 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 92 
     | 
    
         
            +
                  username: root
         
     | 
| 
      
 93 
     | 
    
         
            +
                  password: root123
         
     | 
| 
      
 94 
     | 
    
         
            +
                  port: 3306
         
     | 
| 
      
 95 
     | 
    
         
            +
                  database: railsdb
         
     | 
| 
      
 96 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
              mysql2:
         
     | 
| 
      
 99 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 100 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 101 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 102 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 103 
     | 
    
         
            +
                  username: rails
         
     | 
| 
      
 104 
     | 
    
         
            +
                  encoding: utf8
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
              openbase:
         
     | 
| 
      
 107 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 108 
     | 
    
         
            +
                  username: admin
         
     | 
| 
      
 109 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 110 
     | 
    
         
            +
                  username: admin
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
      
 112 
     | 
    
         
            +
              oracle:
         
     | 
| 
      
 113 
     | 
    
         
            +
                 arunit:
         
     | 
| 
      
 114 
     | 
    
         
            +
                   adapter: oracle_enhanced
         
     | 
| 
      
 115 
     | 
    
         
            +
                   database: <%= ENV['ARUNIT_DB_NAME'] || 'orcl' %>
         
     | 
| 
      
 116 
     | 
    
         
            +
                   username: <%= ENV['ARUNIT_USER_NAME'] || 'arunit' %>
         
     | 
| 
      
 117 
     | 
    
         
            +
                   password: <%= ENV['ARUNIT_PASSWORD'] || 'arunit' %>
         
     | 
| 
      
 118 
     | 
    
         
            +
                   emulate_oracle_adapter: true
         
     | 
| 
      
 119 
     | 
    
         
            +
                 arunit2:
         
     | 
| 
      
 120 
     | 
    
         
            +
                   adapter: oracle_enhanced
         
     | 
| 
      
 121 
     | 
    
         
            +
                   database: <%= ENV['ARUNIT_DB_NAME'] || 'orcl' %>
         
     | 
| 
      
 122 
     | 
    
         
            +
                   username: <%= ENV['ARUNIT2_USER_NAME'] || 'arunit2' %>
         
     | 
| 
      
 123 
     | 
    
         
            +
                   password: <%= ENV['ARUNIT2_PASSWORD'] || 'arunit2' %>
         
     | 
| 
      
 124 
     | 
    
         
            +
                   emulate_oracle_adapter: true
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
              postgresql:
         
     | 
| 
      
 127 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 128 
     | 
    
         
            +
                  min_messages: warning
         
     | 
| 
      
 129 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 130 
     | 
    
         
            +
                  min_messages: warning
         
     | 
| 
      
 131 
     | 
    
         
            +
             
     | 
| 
      
 132 
     | 
    
         
            +
              sqlite3:
         
     | 
| 
      
 133 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 134 
     | 
    
         
            +
                  database: <%= FIXTURES_ROOT %>/fixture_database.sqlite3
         
     | 
| 
      
 135 
     | 
    
         
            +
                  timeout:  5000
         
     | 
| 
      
 136 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 137 
     | 
    
         
            +
                  database: <%= FIXTURES_ROOT %>/fixture_database_2.sqlite3
         
     | 
| 
      
 138 
     | 
    
         
            +
                  timeout:  5000
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
              sqlite3_mem:
         
     | 
| 
      
 141 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 142 
     | 
    
         
            +
                  adapter: sqlite3
         
     | 
| 
      
 143 
     | 
    
         
            +
                  database: ':memory:'
         
     | 
| 
      
 144 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 145 
     | 
    
         
            +
                  adapter: sqlite3
         
     | 
| 
      
 146 
     | 
    
         
            +
                  database: ':memory:'
         
     | 
| 
      
 147 
     | 
    
         
            +
             
     | 
| 
      
 148 
     | 
    
         
            +
              sybase:
         
     | 
| 
      
 149 
     | 
    
         
            +
                arunit:
         
     | 
| 
      
 150 
     | 
    
         
            +
                  host: database_ASE
         
     | 
| 
      
 151 
     | 
    
         
            +
                  username: sa
         
     | 
| 
      
 152 
     | 
    
         
            +
                arunit2:
         
     | 
| 
      
 153 
     | 
    
         
            +
                  host: database_ASE
         
     | 
| 
      
 154 
     | 
    
         
            +
                  username: sa
         
     | 
| 
         @@ -1,44 +1,44 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            =begin
         
     | 
| 
       2 
     | 
    
         
            -
            print "Using native IBM_DB\n"
         
     | 
| 
       3 
     | 
    
         
            -
            require_dependency 'models/course'
         
     | 
| 
       4 
     | 
    
         
            -
            require 'logger'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            ActiveRecord::Base.logger = Logger.new STDOUT
         
     | 
| 
       7 
     | 
    
         
            -
            ActiveRecord::Base.logger.level = Logger::FATAL
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            ActiveRecord::Base.configurations = {
         
     | 
| 
       10 
     | 
    
         
            -
              'arunit' => {
         
     | 
| 
       11 
     | 
    
         
            -
                :adapter       => 'ibm_db',
         
     | 
| 
       12 
     | 
    
         
            -
                :username      => 'db2user',
         
     | 
| 
       13 
     | 
    
         
            -
                :password      => 'secret', 
         
     | 
| 
       14 
     | 
    
         
            -
                :host          => 'bilbao',
         
     | 
| 
       15 
     | 
    
         
            -
                :port          => '50000',
         
     | 
| 
       16 
     | 
    
         
            -
                :schema        => 'rails123',
         
     | 
| 
       17 
     | 
    
         
            -
                :account       => 'tester',
         
     | 
| 
       18 
     | 
    
         
            -
                :app_user      => 'tester_11',
         
     | 
| 
       19 
     | 
    
         
            -
                :application   => 'rails_tests',
         
     | 
| 
       20 
     | 
    
         
            -
                :workstation   => 'auckland',
         
     | 
| 
       21 
     | 
    
         
            -
                :start_id      => 100,
         
     | 
| 
       22 
     | 
    
         
            -
                :database      => 'ARUNIT',
         
     | 
| 
       23 
     | 
    
         
            -
                :parameterized => false
         
     | 
| 
       24 
     | 
    
         
            -
              },
         
     | 
| 
       25 
     | 
    
         
            -
              'arunit2' => {
         
     | 
| 
       26 
     | 
    
         
            -
                :adapter       => 'ibm_db',
         
     | 
| 
       27 
     | 
    
         
            -
                :username      => 'db2user',
         
     | 
| 
       28 
     | 
    
         
            -
                :password      => 'secret',
         
     | 
| 
       29 
     | 
    
         
            -
                :host          => 'bilbao',
         
     | 
| 
       30 
     | 
    
         
            -
                :port          => '50000',
         
     | 
| 
       31 
     | 
    
         
            -
                :schema        => 'rails123',
         
     | 
| 
       32 
     | 
    
         
            -
                :account       => 'tester',
         
     | 
| 
       33 
     | 
    
         
            -
                :app_user      => 'tester_11',
         
     | 
| 
       34 
     | 
    
         
            -
                :application   => 'rails_tests',
         
     | 
| 
       35 
     | 
    
         
            -
                :workstation   => 'auckland',
         
     | 
| 
       36 
     | 
    
         
            -
                :start_id      => 100,
         
     | 
| 
       37 
     | 
    
         
            -
                :database      => 'ARUNIT2',
         
     | 
| 
       38 
     | 
    
         
            -
                :parameterized => false
         
     | 
| 
       39 
     | 
    
         
            -
              }
         
     | 
| 
       40 
     | 
    
         
            -
            }
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
            ActiveRecord::Base.establish_connection 'arunit'
         
     | 
| 
       43 
     | 
    
         
            -
            Course.establish_connection 'arunit2'
         
     | 
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            print "Using native IBM_DB\n"
         
     | 
| 
      
 3 
     | 
    
         
            +
            require_dependency 'models/course'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'logger'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            ActiveRecord::Base.logger = Logger.new STDOUT
         
     | 
| 
      
 7 
     | 
    
         
            +
            ActiveRecord::Base.logger.level = Logger::FATAL
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            ActiveRecord::Base.configurations = {
         
     | 
| 
      
 10 
     | 
    
         
            +
              'arunit' => {
         
     | 
| 
      
 11 
     | 
    
         
            +
                :adapter       => 'ibm_db',
         
     | 
| 
      
 12 
     | 
    
         
            +
                :username      => 'db2user',
         
     | 
| 
      
 13 
     | 
    
         
            +
                :password      => 'secret', 
         
     | 
| 
      
 14 
     | 
    
         
            +
                :host          => 'bilbao',
         
     | 
| 
      
 15 
     | 
    
         
            +
                :port          => '50000',
         
     | 
| 
      
 16 
     | 
    
         
            +
                :schema        => 'rails123',
         
     | 
| 
      
 17 
     | 
    
         
            +
                :account       => 'tester',
         
     | 
| 
      
 18 
     | 
    
         
            +
                :app_user      => 'tester_11',
         
     | 
| 
      
 19 
     | 
    
         
            +
                :application   => 'rails_tests',
         
     | 
| 
      
 20 
     | 
    
         
            +
                :workstation   => 'auckland',
         
     | 
| 
      
 21 
     | 
    
         
            +
                :start_id      => 100,
         
     | 
| 
      
 22 
     | 
    
         
            +
                :database      => 'ARUNIT',
         
     | 
| 
      
 23 
     | 
    
         
            +
                :parameterized => false
         
     | 
| 
      
 24 
     | 
    
         
            +
              },
         
     | 
| 
      
 25 
     | 
    
         
            +
              'arunit2' => {
         
     | 
| 
      
 26 
     | 
    
         
            +
                :adapter       => 'ibm_db',
         
     | 
| 
      
 27 
     | 
    
         
            +
                :username      => 'db2user',
         
     | 
| 
      
 28 
     | 
    
         
            +
                :password      => 'secret',
         
     | 
| 
      
 29 
     | 
    
         
            +
                :host          => 'bilbao',
         
     | 
| 
      
 30 
     | 
    
         
            +
                :port          => '50000',
         
     | 
| 
      
 31 
     | 
    
         
            +
                :schema        => 'rails123',
         
     | 
| 
      
 32 
     | 
    
         
            +
                :account       => 'tester',
         
     | 
| 
      
 33 
     | 
    
         
            +
                :app_user      => 'tester_11',
         
     | 
| 
      
 34 
     | 
    
         
            +
                :application   => 'rails_tests',
         
     | 
| 
      
 35 
     | 
    
         
            +
                :workstation   => 'auckland',
         
     | 
| 
      
 36 
     | 
    
         
            +
                :start_id      => 100,
         
     | 
| 
      
 37 
     | 
    
         
            +
                :database      => 'ARUNIT2',
         
     | 
| 
      
 38 
     | 
    
         
            +
                :parameterized => false
         
     | 
| 
      
 39 
     | 
    
         
            +
              }
         
     | 
| 
      
 40 
     | 
    
         
            +
            }
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            ActiveRecord::Base.establish_connection 'arunit'
         
     | 
| 
      
 43 
     | 
    
         
            +
            Course.establish_connection 'arunit2'
         
     | 
| 
       44 
44 
     | 
    
         
             
            =end
         
     | 
    
        data/test/ibm_db_test.rb
    CHANGED
    
    | 
         @@ -1,25 +1,25 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'test/unit'
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            class IBM_DBAdapterTest < Test::Unit::TestCase
         
     | 
| 
       4 
     | 
    
         
            -
              require 'pathname'
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
              # Fixture
         
     | 
| 
       7 
     | 
    
         
            -
              def driver_lib_path
         
     | 
| 
       8 
     | 
    
         
            -
                drv_path = Pathname.new(File.dirname(__FILE__)).parent + 'lib'
         
     | 
| 
       9 
     | 
    
         
            -
                drv_path += (RUBY_PLATFORM =~ /mswin32/) ? 'mswin32' : 'linux32'
         
     | 
| 
       10 
     | 
    
         
            -
                drv_path += 'ibm_db.so'
         
     | 
| 
       11 
     | 
    
         
            -
              end
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
              # Check IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
         
     | 
| 
       14 
     | 
    
         
            -
              def test_driver_existence
         
     | 
| 
       15 
     | 
    
         
            -
                driver = driver_lib_path
         
     | 
| 
       16 
     | 
    
         
            -
                assert driver.file?
         
     | 
| 
       17 
     | 
    
         
            -
              end
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
              # Attempt loading IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
         
     | 
| 
       20 
     | 
    
         
            -
              def test_driver_loading
         
     | 
| 
       21 
     | 
    
         
            -
                driver = driver_lib_path
         
     | 
| 
       22 
     | 
    
         
            -
                require "#{driver.to_s}"
         
     | 
| 
       23 
     | 
    
         
            -
                assert true
         
     | 
| 
       24 
     | 
    
         
            -
              end
         
     | 
| 
      
 1 
     | 
    
         
            +
            require 'test/unit'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class IBM_DBAdapterTest < Test::Unit::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              require 'pathname'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              # Fixture
         
     | 
| 
      
 7 
     | 
    
         
            +
              def driver_lib_path
         
     | 
| 
      
 8 
     | 
    
         
            +
                drv_path = Pathname.new(File.dirname(__FILE__)).parent + 'lib'
         
     | 
| 
      
 9 
     | 
    
         
            +
                drv_path += (RUBY_PLATFORM =~ /mswin32/) ? 'mswin32' : 'linux32'
         
     | 
| 
      
 10 
     | 
    
         
            +
                drv_path += 'ibm_db.so'
         
     | 
| 
      
 11 
     | 
    
         
            +
              end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
              # Check IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
         
     | 
| 
      
 14 
     | 
    
         
            +
              def test_driver_existence
         
     | 
| 
      
 15 
     | 
    
         
            +
                driver = driver_lib_path
         
     | 
| 
      
 16 
     | 
    
         
            +
                assert driver.file?
         
     | 
| 
      
 17 
     | 
    
         
            +
              end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              # Attempt loading IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
         
     | 
| 
      
 20 
     | 
    
         
            +
              def test_driver_loading
         
     | 
| 
      
 21 
     | 
    
         
            +
                driver = driver_lib_path
         
     | 
| 
      
 22 
     | 
    
         
            +
                require "#{driver.to_s}"
         
     | 
| 
      
 23 
     | 
    
         
            +
                assert true
         
     | 
| 
      
 24 
     | 
    
         
            +
              end
         
     | 
| 
       25 
25 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            class WarehouseThing < ActiveRecord::Base
         
     | 
| 
       2 
     | 
    
         
            -
              set_table_name "warehouse_things"
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
              validates_uniqueness_of :value
         
     | 
| 
      
 1 
     | 
    
         
            +
            class WarehouseThing < ActiveRecord::Base
         
     | 
| 
      
 2 
     | 
    
         
            +
              set_table_name "warehouse_things"
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
              validates_uniqueness_of :value
         
     | 
| 
       5 
5 
     | 
    
         
             
            end
         
     |