ibm_db 2.0.0 → 2.5.0

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.
@@ -1153,7 +1153,7 @@ module ActiveRecord
1153
1153
  value.to_s
1154
1154
  end
1155
1155
  when String, ActiveSupport::Multibyte::Chars
1156
- if column && column.type.to_sym == :binary
1156
+ if column && column.type.to_sym == :binary && !(column.sql_type =~ /for bit data/i)
1157
1157
  # If quoting is required for the insert/update of a BLOB
1158
1158
  unless caller[0] =~ /add_column_options/i
1159
1159
  # Invokes a convertion from string to binary
@@ -1183,12 +1183,6 @@ module ActiveRecord
1183
1183
  end
1184
1184
  when TrueClass then quoted_true # return '1' for true
1185
1185
  when FalseClass then quoted_false # return '0' for false
1186
- when NilClass
1187
- if column && column.instance_of?(IBM_DBColumn) && !column.primary && !column.null
1188
- "''" # allow empty inserts if not nullable or identity
1189
- else # in order to support default ActiveRecord constructors
1190
- "NULL"
1191
- end
1192
1186
  else super # rely on superclass handling
1193
1187
  end
1194
1188
  end
@@ -1387,7 +1387,9 @@ module ActiveRecord
1387
1387
  param_array = param_array + @finder_sql_param_array unless @finder_sql_param_array.nil?
1388
1388
  if sanitized_conditions = sanitize_sql(options[:conditions])
1389
1389
  conditions << " AND (#{sanitized_conditions["sqlSegment"]})"
1390
- param_array << sanitized_conditions["paramArray"] unless sanitized_conditions["paramArray"].nil?
1390
+ unless sanitized_conditions["paramArray"].nil?
1391
+ param_array = param_array + sanitized_conditions["paramArray"]
1392
+ end
1391
1393
  end
1392
1394
 
1393
1395
  if param_array.nil?
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 5
8
+ - 0
9
+ version: 2.5.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - IBM
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-21 00:00:00 +05:30
17
+ date: 2010-05-12 00:00:00 +05:30
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: activerecord
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 15
30
+ - 1
23
31
  version: 1.15.1
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description:
26
35
  email: rubyibm-developers@rubyforge.org
27
36
  executables: []
@@ -85,18 +94,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
94
  requirements:
86
95
  - - ">="
87
96
  - !ruby/object:Gem::Version
97
+ segments:
98
+ - 1
99
+ - 8
100
+ - 6
88
101
  version: 1.8.6
89
- version:
90
102
  required_rubygems_version: !ruby/object:Gem::Requirement
91
103
  requirements:
92
104
  - - ">="
93
105
  - !ruby/object:Gem::Version
106
+ segments:
107
+ - 0
94
108
  version: "0"
95
- version:
96
109
  requirements:
97
110
  - ActiveRecord, at least 1.15.1
98
111
  rubyforge_project: rubyibm
99
- rubygems_version: 1.3.5
112
+ rubygems_version: 1.3.6
100
113
  signing_key:
101
114
  specification_version: 3
102
115
  summary: "Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows, DB2 on zOS, DB2 on i5/OS, Informix (IDS)}"