ibm_db 2.0.0-mswin32 → 2.5.0-mswin32
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.
- data/CHANGES +5 -0
- data/README +8 -2
- data/ext/extconf.rb +2 -0
- data/ext/ibm_db.c +2288 -577
- data/ext/ruby_ibm_db.h +12 -4
- data/ext/ruby_ibm_db_cli.c +130 -21
- data/ext/ruby_ibm_db_cli.h +47 -15
- data/lib/active_record/connection_adapters/ibm_db_adapter.rb +1 -7
- data/lib/active_record/connection_adapters/ibm_db_pstmt.rb +3 -1
- data/lib/mswin32/ibm_db.so +0 -0
- metadata +2 -2
@@ -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
|
-
|
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?
|
data/lib/mswin32/ibm_db.so
CHANGED
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.
|
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-
|
12
|
+
date: 2010-05-12 00:00:00 +05:30
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|