rdbi-driver-odbc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/lib/rdbi/driver/odbc.rb +20 -14
- metadata +4 -5
data/CHANGELOG.md
CHANGED
data/lib/rdbi/driver/odbc.rb
CHANGED
@@ -183,20 +183,26 @@ class RDBI::Driver::ODBC < RDBI::Driver
|
|
183
183
|
@handle = @dbh.handle.prepare(query)
|
184
184
|
@output_type_map = RDBI::Type.create_type_hash(RDBI::Type::Out)
|
185
185
|
|
186
|
-
@output_type_map[:date] =
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
186
|
+
@output_type_map[:date] = [
|
187
|
+
TypeLib::Filter.new(
|
188
|
+
proc{|obj| obj.is_a?(::ODBC::Date)},
|
189
|
+
proc{|obj| Date.parse(obj.to_s)}
|
190
|
+
)
|
191
|
+
]
|
192
|
+
|
193
|
+
@output_type_map[:time] = [
|
194
|
+
TypeLib::Filter.new(
|
195
|
+
proc{|obj| obj.is_a?(::ODBC::Time)},
|
196
|
+
proc{|obj| Time.parse(obj.to_s)}
|
197
|
+
)
|
198
|
+
]
|
199
|
+
|
200
|
+
@output_type_map[:timestamp] = [
|
201
|
+
TypeLib::Filter.new(
|
202
|
+
proc{|obj| obj.is_a?(::ODBC::TimeStamp)},
|
203
|
+
proc{|obj| DateTime.parse(obj.to_s)}
|
204
|
+
)
|
205
|
+
]
|
200
206
|
end
|
201
207
|
|
202
208
|
def new_execution(*binds)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Shane Emmons
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-15 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -69,8 +69,7 @@ dependencies:
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
segments:
|
71
71
|
- 2
|
72
|
-
|
73
|
-
version: "2.2"
|
72
|
+
version: "2"
|
74
73
|
type: :development
|
75
74
|
version_requirements: *id004
|
76
75
|
- !ruby/object:Gem::Dependency
|