ibm_db 2.5.16 → 2.5.17

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,16 @@
1
1
  Change Log
2
2
  ==============
3
+ 2014/03/03 (IBM_DB adapter 2.5.17, driver 2.5.14) :
4
+ - Shipping binaries compatible with Ruby 2.0 for linux x86_64 systems (#29871)
5
+ - Fixed #29869
6
+ - Support microsecond timestamp.
7
+
8
+ 2014/02/26 (IBM_DB adapter 2.5.16, driver 2.5.14) :
9
+ - Yanked version 2.5.15. Hence using new version number
10
+
11
+ 2014/02/17 (IBM_DB adapter 2.5.15, driver 2.5.14) :
12
+ - Yanked version 2.5.14. Hence using new version number
13
+
3
14
  2014/02/11 (IBM_DB adapter 2.5.14, driver 2.5.14) :
4
15
  - Support for Rails 4
5
16
  - Support for ruby-2.0
data/lib/IBM_DB.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require (RUBY_PLATFORM =~ /mswin32/ || RUBY_PLATFORM =~ /mingw32/ ) ? 'mswin32/ibm_db' : 'ibm_db.so'
2
+ require 'active_record'
2
3
  require 'active_record/connection_adapters/ibm_db_adapter'
@@ -619,7 +619,9 @@ module ActiveRecord
619
619
  when /DB2\//i # DB2 for Linux, Unix and Windows (LUW)
620
620
  case server_info.DBMS_VER
621
621
  when /09.07/i # DB2 Version 9.7 (Cobra)
622
- @servertype = IBM_DB2_LUW_COBRA.new(self, isAr3)
622
+ @servertype = IBM_DB2_LUW_COBRA.new(self, @isAr3)
623
+ when /10./i #DB2 version 10.1 and above
624
+ @servertype = IBM_DB2_LUW_COBRA.new(self, @isAr3)
623
625
  else # DB2 Version 9.5 or below
624
626
  @servertype = IBM_DB2_LUW.new(self, @isAr3)
625
627
  end
@@ -1374,7 +1376,16 @@ module ActiveRecord
1374
1376
  # QUOTING
1375
1377
  #==============================================
1376
1378
 
1377
- #Praveen
1379
+ # Quote date/time values for use in SQL input.
1380
+ # Includes microseconds, if the value is a Time responding to usec.
1381
+ def quoted_date(value) #:nodoc:
1382
+ if value.respond_to?(:usec)
1383
+ "#{super}.#{sprintf("%06d", value.usec)}"
1384
+ else
1385
+ super
1386
+ end
1387
+ end
1388
+
1378
1389
  def quote_value_for_pstmt(value, column=nil)
1379
1390
 
1380
1391
  return value.quoted_id if value.respond_to?(:quoted_id)
metadata CHANGED
@@ -1,27 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.16
4
+ version: 2.5.17
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - IBM
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
12
+ date: 2014-03-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 1.15.1
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 1.15.1
27
30
  description:
@@ -34,73 +37,74 @@ extra_rdoc_files:
34
37
  - README
35
38
  - MANIFEST
36
39
  files:
37
- - CHANGES
38
- - LICENSE
39
- - MANIFEST
40
- - ParameterizedQueries README
41
40
  - README
42
- - ext/Makefile.nt32
43
- - ext/Makefile.nt32.191
44
- - ext/extconf.rb
45
- - ext/ibm_db.c
46
- - ext/ruby_ibm_db.h
47
- - ext/ruby_ibm_db_cli.c
48
- - ext/ruby_ibm_db_cli.h
49
- - init.rb
50
- - lib/IBM_DB.rb
41
+ - lib/active_record/connection_adapters/ibmdb_adapter.rb
51
42
  - lib/active_record/connection_adapters/ibm_db_adapter.rb
52
43
  - lib/active_record/connection_adapters/ibm_db_pstmt.rb
53
- - lib/active_record/connection_adapters/ibmdb_adapter.rb
54
44
  - lib/active_record/vendor/db2-i5-zOS.yaml
55
- - test/cases/adapter_test.rb
56
- - test/cases/associations/belongs_to_associations_test.rb
57
- - test/cases/associations/cascaded_eager_loading_test.rb
58
- - test/cases/associations/has_and_belongs_to_many_associations_test.rb
59
- - test/cases/associations/join_model_test.rb
45
+ - lib/IBM_DB.rb
46
+ - test/connections/native_ibm_db/connection.rb
47
+ - test/models/warehouse_thing.rb
60
48
  - test/cases/attribute_methods_test.rb
61
- - test/cases/base_test.rb
62
- - test/cases/calculations_test.rb
63
- - test/cases/migration_test.rb
64
- - test/cases/persistence_test.rb
65
- - test/cases/query_cache_test.rb
66
49
  - test/cases/relations_test.rb
67
50
  - test/cases/schema_dumper_test.rb
68
51
  - test/cases/transaction_callbacks_test.rb
69
- - test/cases/validations/uniqueness_validation_test.rb
70
52
  - test/cases/xml_serialization_test.rb
53
+ - test/cases/validations/uniqueness_validation_test.rb
54
+ - test/cases/persistence_test.rb
55
+ - test/cases/calculations_test.rb
56
+ - test/cases/query_cache_test.rb
57
+ - test/cases/migration_test.rb
58
+ - test/cases/base_test.rb
59
+ - test/cases/associations/belongs_to_associations_test.rb
60
+ - test/cases/associations/has_and_belongs_to_many_associations_test.rb
61
+ - test/cases/associations/cascaded_eager_loading_test.rb
62
+ - test/cases/associations/join_model_test.rb
63
+ - test/cases/adapter_test.rb
71
64
  - test/config.yml
72
- - test/connections/native_ibm_db/connection.rb
73
- - test/ibm_db_test.rb
74
- - test/models/warehouse_thing.rb
75
- - test/schema/i5/ibm_db_specific_schema.rb
65
+ - test/schema/zOS/ibm_db_specific_schema.rb
76
66
  - test/schema/ids/ibm_db_specific_schema.rb
77
- - test/schema/luw/ibm_db_specific_schema.rb
67
+ - test/schema/i5/ibm_db_specific_schema.rb
78
68
  - test/schema/schema.rb
79
- - test/schema/zOS/ibm_db_specific_schema.rb
69
+ - test/schema/luw/ibm_db_specific_schema.rb
70
+ - test/ibm_db_test.rb
71
+ - ParameterizedQueries README
72
+ - ext/ruby_ibm_db.h
73
+ - ext/Makefile.nt32
74
+ - ext/ruby_ibm_db_cli.c
75
+ - ext/ruby_ibm_db_cli.h
76
+ - ext/extconf.rb
77
+ - ext/ibm_db.c
78
+ - ext/Makefile.nt32.191
79
+ - LICENSE
80
+ - init.rb
81
+ - CHANGES
82
+ - MANIFEST
80
83
  homepage: http://rubyforge.org/projects/rubyibm/
81
84
  licenses: []
82
- metadata: {}
83
85
  post_install_message:
84
86
  rdoc_options: []
85
87
  require_paths:
86
88
  - lib
87
89
  required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
88
91
  requirements:
89
- - - ">="
92
+ - - ! '>='
90
93
  - !ruby/object:Gem::Version
91
94
  version: 1.8.6
92
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
+ none: false
93
97
  requirements:
94
- - - ">="
98
+ - - ! '>='
95
99
  - !ruby/object:Gem::Version
96
100
  version: '0'
97
101
  requirements:
98
102
  - ActiveRecord, at least 1.15.1
99
103
  rubyforge_project: rubyibm
100
- rubygems_version: 2.2.0
104
+ rubygems_version: 1.8.24
101
105
  signing_key:
102
- specification_version: 4
103
- summary: 'Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows,
106
+ specification_version: 3
107
+ summary: ! 'Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows,
104
108
  DB2 on zOS, DB2 on i5/OS, Informix (IDS)}'
105
109
  test_files:
106
110
  - test/ibm_db_test.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: b6d5f7d681320f5a9f4ebf7c8e09e8b7c7486354
4
- data.tar.gz: 92c174932fb5e557fe090d12ef93ec8b8eb23fc7
5
- SHA512:
6
- metadata.gz: 681daa8439ebcae23e9fbd70a4df61acb4f9560fb40bc48936026bc5977354bd800637929250facfe125f2e913c90cf42fdd1c4a29ba3e1ac23da67c3db9dce2
7
- data.tar.gz: 87ef2b01c17f5d58cbf66f58f7340a5829cdfb8bd0fc1ec5338c161e08b2d76449c8fdf275012a0ee57189a79933382c98676e4c55e6b532b45e5db4b810518c