ibm_db 2.0.0-mswin32 → 2.5.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
@@ -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?
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.5.0
5
5
  platform: mswin32
6
6
  authors:
7
7
  - IBM
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-21 00:00:00 +05:30
12
+ date: 2010-05-12 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency