dbd-odbc 0.2.2 → 0.2.3

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.
@@ -54,7 +54,7 @@ module DBI
54
54
  #
55
55
  module ODBC
56
56
 
57
- VERSION = "0.2.2"
57
+ VERSION = "0.2.3"
58
58
  DESCRIPTION = "ODBC DBI DBD"
59
59
 
60
60
  def self.driver_name
@@ -77,7 +77,7 @@ class DBI::DBD::ODBC::Database < DBI::BaseDatabase
77
77
 
78
78
  def execute(statement, *bindvars)
79
79
  stmt = @handle.run(statement, *bindvars)
80
- DBI::DBD::ODBC::Statement.new(stmt)
80
+ DBI::DBD::ODBC::Statement.new(stmt, statement)
81
81
  rescue DBI::DBD::ODBC::ODBCErr => err
82
82
  raise DBI::DatabaseError.new(err.message)
83
83
  end
@@ -1,4 +1,13 @@
1
1
  @class = Class.new(DBDConfig.testbase(DBDConfig.current_dbtype)) do
2
+
3
+ def test_execute
4
+ assert_nothing_raised do
5
+ @dbh.execute("select * from names order by age") do |sth|
6
+ assert_equal([["Joe", 19], ["Bob", 21], ["Jim", 30]], sth.fetch_all)
7
+ end
8
+ end
9
+ end
10
+
2
11
  def test_quoting # FIXME breaks sqlite-ruby to a segfault - research
3
12
  @sth = nil
4
13
 
@@ -114,7 +123,7 @@
114
123
  @sth.finish
115
124
  end
116
125
 
117
- def test_execute
126
+ def test_prepare_execute
118
127
  assert_nothing_raised do
119
128
  @sth = @dbh.prepare("select * from names")
120
129
  @sth.execute
@@ -134,7 +143,7 @@
134
143
  end
135
144
  end
136
145
 
137
- def test_execute_with_transactions
146
+ def test_prepare_execute_with_transactions
138
147
  @dbh["AutoCommit"] = false
139
148
  config = DBDConfig.get_config['sqlite3']
140
149
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd-odbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Hollensbe
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-08-23 00:00:00 -07:00
13
+ date: 2008-09-02 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency