tiny_tds 0.9.5.beta.5-x86-mingw32 → 0.9.5.beta.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/appveyor.yml +1 -0
- data/exe/defncopy.exe +0 -0
- data/exe/tsql.exe +0 -0
- data/ext/tiny_tds/result.c +1 -1
- data/test/schema/sqlserver_2000.sql +1 -1
- data/test/schema/sqlserver_2005.sql +1 -1
- data/test/schema/sqlserver_2008.sql +1 -1
- data/test/schema/sqlserver_2014.sql +1 -1
- data/test/schema/sqlserver_azure.sql +1 -1
- data/test/schema_test.rb +3 -2
- data/test/test_helper.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bccb5c9866600fb7fbb0adf319cadbddbc3e7053
|
4
|
+
data.tar.gz: a0946ec50315e5b35e97b1b41b3486ca550969a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 262624d8717b9d97a68b415dd3ff020410a3c7bebf3c3e7e4fcaa6ad8c05d9898d7c746d16601e23a46d09b27ded8010395b47694984937ef5942393bfc9fa1f
|
7
|
+
data.tar.gz: f2413d1ed09d843433ebb8e230cb2cf656beb97189285adae2a10c22ab9c0740e10ee8d8b5df9761777fdaa6c336dd8ad1883b84ce3647cf77e0e5b4b7ed13e9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.5.beta.
|
1
|
+
0.9.5.beta.6
|
data/appveyor.yml
CHANGED
data/exe/defncopy.exe
CHANGED
Binary file
|
data/exe/tsql.exe
CHANGED
Binary file
|
data/ext/tiny_tds/result.c
CHANGED
@@ -307,7 +307,7 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
|
|
307
307
|
break;
|
308
308
|
}
|
309
309
|
case 43: { // SYBMSDATETIMEOFFSET
|
310
|
-
VALUE rational_sec = rb_Rational(INT2NUM(dr2.nanosecond), opt_onebil);
|
310
|
+
VALUE rational_sec = rb_Rational(INT2NUM((dr2.second * 1000000000) + dr2.nanosecond), opt_onebil);
|
311
311
|
val = rb_funcall(rb_cTime, intern_new, 7, INT2NUM(dr2.year), INT2NUM(dr2.month), INT2NUM(dr2.day), INT2NUM(dr2.hour), INT2NUM(dr2.minute), rational_sec, INT2NUM(dr2.tzone*60));
|
312
312
|
break;
|
313
313
|
}
|
@@ -78,7 +78,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
78
78
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 81, '1984-01-24T04:20:00.1234567-08:00' ) -- 1984-01-24 04:20:00.00 -08:00
|
79
79
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
80
80
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
81
|
-
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:
|
81
|
+
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:59.1234567-08:00' ) -- 1984-01-24 04:20:59.1234567 -08:00
|
82
82
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 85, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.0000000 +00:00
|
83
83
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 86, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.9999999 +00:00
|
84
84
|
INSERT INTO [datatypes] ([id], [decimal_9_2]) VALUES ( 91, 12345.01 )
|
@@ -78,7 +78,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
78
78
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 81, '1984-01-24T04:20:00.1234567-08:00' ) -- 1984-01-24 04:20:00.00 -08:00
|
79
79
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
80
80
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
81
|
-
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:
|
81
|
+
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:59.1234567-08:00' ) -- 1984-01-24 04:20:59.1234567 -08:00
|
82
82
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 85, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.0000000 +00:00
|
83
83
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 86, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.9999999 +00:00
|
84
84
|
INSERT INTO [datatypes] ([id], [decimal_9_2]) VALUES ( 91, 12345.01 )
|
@@ -78,7 +78,7 @@ INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:
|
|
78
78
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 81, '1984-01-24T04:20:00.1234567-08:00' ) -- 1984-01-24 04:20:00.00 -08:00
|
79
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
80
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
81
|
-
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:
|
81
|
+
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:59.1234567-08:00' ) -- 1984-01-24 04:20:59.1234567 -08:00
|
82
82
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 85, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.0000000 +00:00
|
83
83
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 86, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.9999999 +00:00
|
84
84
|
INSERT INTO [datatypes] ([id], [decimal_9_2]) VALUES ( 91, 12345.01 )
|
@@ -78,7 +78,7 @@ INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:
|
|
78
78
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 81, '1984-01-24T04:20:00.1234567-08:00' ) -- 1984-01-24 04:20:00.00 -08:00
|
79
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
80
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
81
|
-
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:
|
81
|
+
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:59.1234567-08:00' ) -- 1984-01-24 04:20:59.1234567 -08:00
|
82
82
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 85, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.0000000 +00:00
|
83
83
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 86, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.9999999 +00:00
|
84
84
|
INSERT INTO [datatypes] ([id], [decimal_9_2]) VALUES ( 91, 12345.01 )
|
@@ -78,7 +78,7 @@ INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:
|
|
78
78
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 81, '1984-01-24T04:20:00.1234567-08:00' ) -- 1984-01-24 04:20:00.00 -08:00
|
79
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
80
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
81
|
-
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:
|
81
|
+
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 84, '1984-01-24T04:20:59.1234567-08:00' ) -- 1984-01-24 04:20:59.1234567 -08:00
|
82
82
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 85, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.0000000 +00:00
|
83
83
|
INSERT INTO [datatypes] ([id], [datetimeoffset_7]) VALUES ( 86, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.9999999 +00:00
|
84
84
|
INSERT INTO [datatypes] ([id], [decimal_9_2]) VALUES ( 91, 12345.01 )
|
data/test/schema_test.rb
CHANGED
@@ -391,6 +391,7 @@ class SchemaTest < TinyTds::TestCase
|
|
391
391
|
end
|
392
392
|
|
393
393
|
it 'casts datetimeoffset' do
|
394
|
+
skip 'datetimeoffset argument out of range' if windows_32bit?
|
394
395
|
# 1984-01-24T04:20:00.1234567-08:00
|
395
396
|
v = find_value 84, :datetimeoffset_7
|
396
397
|
if @client.tds_73?
|
@@ -401,7 +402,7 @@ class SchemaTest < TinyTds::TestCase
|
|
401
402
|
assert_equal 24, v.day, 'Day'
|
402
403
|
assert_equal 4, v.hour, 'Hour'
|
403
404
|
assert_equal 20, v.min, 'Minute'
|
404
|
-
assert_equal
|
405
|
+
assert_equal 59, v.sec, 'Second'
|
405
406
|
assert_equal 123456, v.usec, 'Microseconds'
|
406
407
|
assert_equal 123456700, v.nsec, 'Nanoseconds'
|
407
408
|
assert_equal -28800, v.utc_offset, 'Offset'
|
@@ -410,7 +411,7 @@ class SchemaTest < TinyTds::TestCase
|
|
410
411
|
v = find_value 84, :datetimeoffset_7, timezone: :local
|
411
412
|
assertions.call # Ignores timezone query option.
|
412
413
|
else
|
413
|
-
assert_equal '1984-01-24 04:20:
|
414
|
+
assert_equal '1984-01-24 04:20:59.1234567 -08:00', v
|
414
415
|
end
|
415
416
|
end
|
416
417
|
|
data/test/test_helper.rb
CHANGED
@@ -134,6 +134,10 @@ module TinyTds
|
|
134
134
|
assert_equal Encoding.find('UTF-8'), value.encoding
|
135
135
|
end
|
136
136
|
|
137
|
+
def windows_32bit?
|
138
|
+
RbConfig::CONFIG['host_os'] == 'mingw32' && RbConfig::CONFIG['host'] =~ /i686-pc/
|
139
|
+
end
|
140
|
+
|
137
141
|
def rubyRbx?
|
138
142
|
RUBY_DESCRIPTION =~ /rubinius/i
|
139
143
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.5.beta.
|
4
|
+
version: 0.9.5.beta.6
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-12-
|
13
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|