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.
Files changed (3) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/lib/rdbi/driver/odbc.rb +20 -14
  3. metadata +4 -5
@@ -1,3 +1,11 @@
1
+ RDBI-DRIVER-ODBC 0.1.2
2
+ ======================
3
+
4
+ Features
5
+ --------
6
+ - Fix to work with RDBI v0.9.1
7
+ - Update rspec development dependency to ~> 2
8
+
1
9
  RDBI-DRIVER-ODBC 0.1.1
2
10
  ======================
3
11
 
@@ -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] = TypeLib::Filter.new(
187
- proc{|obj| obj.is_a?(::ODBC::Date)},
188
- proc{|obj| Date.parse(obj.to_s)}
189
- )
190
-
191
- @output_type_map[:time] = TypeLib::Filter.new(
192
- proc{|obj| obj.is_a?(::ODBC::Time)},
193
- proc{|obj| Time.parse(obj.to_s)}
194
- )
195
-
196
- @output_type_map[:timestamp] = TypeLib::Filter.new(
197
- proc{|obj| obj.is_a?(::ODBC::TimeStamp)},
198
- proc{|obj| DateTime.parse(obj.to_s)}
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
- - 1
9
- version: 0.1.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-14 00:00:00 -05:00
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
- - 2
73
- version: "2.2"
72
+ version: "2"
74
73
  type: :development
75
74
  version_requirements: *id004
76
75
  - !ruby/object:Gem::Dependency