ruby-odbc 0.99992 → 0.99993
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/README +2 -2
- data/ext/odbc.c +7 -5
- data/ruby-odbc.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
ODBC binding for Ruby
|
2
2
|
---------------------
|
3
3
|
|
4
|
+
Fri Dec 24 2010 version 0.99993 released
|
5
|
+
|
6
|
+
* fixed error reporting in Database.transaction method,
|
7
|
+
thanks Shane Emmons for bug report and testing
|
8
|
+
|
4
9
|
Thu Sep 16 2010 version 0.99992 released
|
5
10
|
|
6
11
|
* ODBC::Statement.each/each_hash now output arrays when
|
data/README
CHANGED
data/ext/odbc.c
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
* and redistribution of this file and for a
|
9
9
|
* DISCLAIMER OF ALL WARRANTIES.
|
10
10
|
*
|
11
|
-
* $Id: odbc.c,v 1.
|
11
|
+
* $Id: odbc.c,v 1.71 2010/12/24 16:24:21 chw Exp chw $
|
12
12
|
*/
|
13
13
|
|
14
14
|
#undef ODBCVER
|
@@ -251,7 +251,6 @@ static ID IDFixnum;
|
|
251
251
|
static ID IDtable_names;
|
252
252
|
static ID IDnew;
|
253
253
|
static ID IDnow;
|
254
|
-
static ID IDlocal;
|
255
254
|
static ID IDname;
|
256
255
|
static ID IDtable;
|
257
256
|
static ID IDtype;
|
@@ -276,6 +275,7 @@ static ID IDencode;
|
|
276
275
|
static ID IDparse;
|
277
276
|
static ID IDutc;
|
278
277
|
static ID IDlocal;
|
278
|
+
static ID IDto_s;
|
279
279
|
|
280
280
|
/*
|
281
281
|
* Modes for dbc_info
|
@@ -4120,12 +4120,13 @@ dbc_transaction(VALUE self)
|
|
4120
4120
|
rb_ary_store(a, 0, self);
|
4121
4121
|
rb_ary_store(a, 1, Qnil);
|
4122
4122
|
if ((ret = rb_rescue2(dbc_transbody, a, dbc_transfail, a,
|
4123
|
-
rb_eException)) != Qundef) {
|
4123
|
+
rb_eException, (VALUE) 0)) != Qundef) {
|
4124
4124
|
dbc_commit(self);
|
4125
4125
|
return ret;
|
4126
4126
|
}
|
4127
4127
|
ret = rb_ary_entry(a, 1);
|
4128
|
-
rb_exc_raise(rb_exc_new3(
|
4128
|
+
rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
|
4129
|
+
rb_funcall(ret, IDto_s, 0, 0)));
|
4129
4130
|
return Qnil;
|
4130
4131
|
}
|
4131
4132
|
|
@@ -8045,7 +8046,8 @@ static struct {
|
|
8045
8046
|
#endif
|
8046
8047
|
{ &IDparse, "parse" },
|
8047
8048
|
{ &IDutc, "utc" },
|
8048
|
-
{ &IDlocal, "local" }
|
8049
|
+
{ &IDlocal, "local" },
|
8050
|
+
{ &IDto_s, "to_s" }
|
8049
8051
|
};
|
8050
8052
|
|
8051
8053
|
/*
|
data/ruby-odbc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-odbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.99993"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Werner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-12-24 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|