tiny_tds 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/ext/tiny_tds/result.c +2 -2
- data/ext/tiny_tds/tiny_tds_ext.h +0 -1
- data/lib/tiny_tds.rb +1 -1
- data/lib/tiny_tds/tiny_tds.bundle +0 -0
- metadata +5 -4
data/CHANGELOG
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
|
2
|
+
* 0.2.3 *
|
3
|
+
|
4
|
+
* Do not use development ruby/version, but simple memoize an eval check on init to find out, for 1.8.6 reflection.
|
5
|
+
|
6
|
+
|
2
7
|
* 0.2.2 *
|
3
8
|
|
4
9
|
* Fixed failing test in Ruby 1.8.6. DateTime doesn't support fractional seconds greater than 59. See: http://redmine.ruby-lang.org/issues/show/1490 [Erik Bryn]
|
data/ext/tiny_tds/result.c
CHANGED
@@ -165,7 +165,7 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
|
|
165
165
|
if (year < 1902 || year+month+day > 2058) {
|
166
166
|
VALUE datetime_sec = INT2NUM(sec);
|
167
167
|
if (msec != 0) {
|
168
|
-
if ((opt_ruby_186 ==
|
168
|
+
if ((opt_ruby_186 == 1 && sec < 59) || (opt_ruby_186 != 1)) {
|
169
169
|
#ifdef HAVE_RUBY_ENCODING_H
|
170
170
|
VALUE rational_msec = rb_Rational2(INT2NUM(msec*1000), opt_onemil);
|
171
171
|
#else
|
@@ -415,7 +415,7 @@ void init_tinytds_result() {
|
|
415
415
|
opt_tenk = INT2NUM(10000);
|
416
416
|
opt_onemil = INT2NUM(1000000);
|
417
417
|
/* Ruby version flags */
|
418
|
-
opt_ruby_186 =
|
418
|
+
opt_ruby_186 = (rb_eval_string("RUBY_VERSION == '1.8.6'") == Qtrue) ? 1 : 0;
|
419
419
|
/* Encoding */
|
420
420
|
#ifdef HAVE_RUBY_ENCODING_H
|
421
421
|
binaryEncoding = rb_enc_find("binary");
|
data/ext/tiny_tds/tiny_tds_ext.h
CHANGED
data/lib/tiny_tds.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ken Collins
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-13 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/tiny_tds/client.rb
|
43
43
|
- lib/tiny_tds/error.rb
|
44
44
|
- lib/tiny_tds/result.rb
|
45
|
+
- lib/tiny_tds/tiny_tds.bundle
|
45
46
|
- lib/tiny_tds.rb
|
46
47
|
has_rdoc: true
|
47
48
|
homepage: http://github.com/rails-sqlserver/tiny_tds
|