tiny_tds 0.9.5.beta.3-x64-mingw32 → 0.9.5.beta.4-x64-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/exe/defncopy.exe +0 -0
- data/exe/tsql.exe +0 -0
- data/ext/tiny_tds/extconsts.rb +1 -1
- data/ports/patches/freetds/{0.95.76 → 0.95.78}/0001-mingw_missing_inet_pton.diff +0 -0
- data/test/schema/sqlserver_2000.sql +2 -0
- data/test/schema/sqlserver_2005.sql +2 -0
- data/test/schema/sqlserver_2008.sql +2 -0
- data/test/schema/sqlserver_2014.sql +2 -0
- data/test/schema/sqlserver_azure.sql +2 -0
- data/test/schema_test.rb +15 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77cd8542223fbc8285e78deeba769e0760fb7a35
|
4
|
+
data.tar.gz: 4ce21373cac4a4251592a9a1a990321a3536709e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 800000e21ad2d1eafa43e3aa0ab9d36f8260881a14a481ceb0845653a90726a4c88e9ffa537c9a8d328f08e33a5f079d16f532dc810305bb62136dff97a1b652
|
7
|
+
data.tar.gz: 7ca4c101fd863e03b520ca6577140710f0cf9f9a07a5e104c29df6ae8b311607308fbf4a022840b8ce19ccc74a7665192c6db808d827ca404b3c0806caaddd20
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.5.beta.
|
1
|
+
0.9.5.beta.4
|
data/exe/defncopy.exe
CHANGED
Binary file
|
data/exe/tsql.exe
CHANGED
Binary file
|
data/ext/tiny_tds/extconsts.rb
CHANGED
@@ -5,7 +5,7 @@ ICONV_SOURCE_URI = "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{ICONV_VERSION
|
|
5
5
|
OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '1.0.2e'
|
6
6
|
OPENSSL_SOURCE_URI = "http://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz"
|
7
7
|
|
8
|
-
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "0.95.
|
8
|
+
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "0.95.78"
|
9
9
|
FREETDS_VERSION_INFO = Hash.new { |h,k|
|
10
10
|
h[k] = {files: "ftp://ftp.freetds.org/pub/freetds/stable/freetds-#{k}.tar.bz2"}
|
11
11
|
}
|
File without changes
|
@@ -22,6 +22,7 @@ CREATE TABLE [dbo].[datatypes] (
|
|
22
22
|
-- [date] [date] NULL,
|
23
23
|
[datetime] [datetime] NULL,
|
24
24
|
-- [datetime2_7] [datetime2](7) NULL,
|
25
|
+
-- [datetime2_2] [datetime2](2) NULL,
|
25
26
|
-- [datetimeoffset_2] [datetimeoffset](2) NULL,
|
26
27
|
-- [datetimeoffset_7] [datetimeoffset](7) NULL,
|
27
28
|
[decimal_9_2] [decimal](9, 2) NULL,
|
@@ -73,6 +74,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
73
74
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 71, '0001-01-01 00:00:00.0000000' )
|
74
75
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 72, '1984-01-24 04:20:00.0000000' )
|
75
76
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 73, '9999-12-31 23:59:59.9999999' )
|
77
|
+
-- INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:59:59.123456789' )
|
76
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
|
77
79
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
78
80
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
@@ -22,6 +22,7 @@ CREATE TABLE [dbo].[datatypes] (
|
|
22
22
|
-- [date] [date] NULL,
|
23
23
|
[datetime] [datetime] NULL,
|
24
24
|
-- [datetime2_7] [datetime2](7) NULL,
|
25
|
+
-- [datetime2_2] [datetime2](2) NULL,
|
25
26
|
-- [datetimeoffset_2] [datetimeoffset](2) NULL,
|
26
27
|
-- [datetimeoffset_7] [datetimeoffset](7) NULL,
|
27
28
|
[decimal_9_2] [decimal](9, 2) NULL,
|
@@ -73,6 +74,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
73
74
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 71, '0001-01-01 00:00:00.0000000' )
|
74
75
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 72, '1984-01-24 04:20:00.0000000' )
|
75
76
|
-- INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 73, '9999-12-31 23:59:59.9999999' )
|
77
|
+
-- INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:59:59.123456789' )
|
76
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
|
77
79
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
78
80
|
-- INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
@@ -22,6 +22,7 @@ CREATE TABLE [dbo].[datatypes] (
|
|
22
22
|
[date] [date] NULL,
|
23
23
|
[datetime] [datetime] NULL,
|
24
24
|
[datetime2_7] [datetime2](7) NULL,
|
25
|
+
[datetime2_2] [datetime2](2) NULL,
|
25
26
|
[datetimeoffset_2] [datetimeoffset](2) NULL,
|
26
27
|
[datetimeoffset_7] [datetimeoffset](7) NULL,
|
27
28
|
[decimal_9_2] [decimal](9, 2) NULL,
|
@@ -73,6 +74,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
73
74
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 71, '0001-01-01 00:00:00.0000000' )
|
74
75
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 72, '1984-01-24 04:20:00.0000000' )
|
75
76
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 73, '9999-12-31 23:59:59.9999999' )
|
77
|
+
INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:59:59.123456789' )
|
76
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
|
77
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
78
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
@@ -22,6 +22,7 @@ CREATE TABLE [dbo].[datatypes] (
|
|
22
22
|
[date] [date] NULL,
|
23
23
|
[datetime] [datetime] NULL,
|
24
24
|
[datetime2_7] [datetime2](7) NULL,
|
25
|
+
[datetime2_2] [datetime2](2) NULL,
|
25
26
|
[datetimeoffset_2] [datetimeoffset](2) NULL,
|
26
27
|
[datetimeoffset_7] [datetimeoffset](7) NULL,
|
27
28
|
[decimal_9_2] [decimal](9, 2) NULL,
|
@@ -73,6 +74,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
73
74
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 71, '0001-01-01 00:00:00.0000000' )
|
74
75
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 72, '1984-01-24 04:20:00.0000000' )
|
75
76
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 73, '9999-12-31 23:59:59.9999999' )
|
77
|
+
INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:59:59.123456789' )
|
76
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
|
77
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
78
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
@@ -22,6 +22,7 @@ CREATE TABLE [dbo].[datatypes] (
|
|
22
22
|
[date] [date] NULL,
|
23
23
|
[datetime] [datetime] NULL,
|
24
24
|
[datetime2_7] [datetime2](7) NULL,
|
25
|
+
[datetime2_2] [datetime2](2) NULL,
|
25
26
|
[datetimeoffset_2] [datetimeoffset](2) NULL,
|
26
27
|
[datetimeoffset_7] [datetimeoffset](7) NULL,
|
27
28
|
[decimal_9_2] [decimal](9, 2) NULL,
|
@@ -73,6 +74,7 @@ INSERT INTO [datatypes] ([id], [datetime]) VALUES ( 63, '2010-01-01T12:
|
|
73
74
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 71, '0001-01-01 00:00:00.0000000' )
|
74
75
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 72, '1984-01-24 04:20:00.0000000' )
|
75
76
|
INSERT INTO [datatypes] ([id], [datetime2_7]) VALUES ( 73, '9999-12-31 23:59:59.9999999' )
|
77
|
+
INSERT INTO [datatypes] ([id], [datetime2_2]) VALUES ( 74, '9999-12-31 23:59:59.123456789' )
|
76
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
|
77
79
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 82, '1984-01-24T04:20:00.0000000Z' ) -- 1984-01-24 04:20:00.00 +00:00
|
78
80
|
INSERT INTO [datatypes] ([id], [datetimeoffset_2]) VALUES ( 83, '9999-12-31T23:59:59.9999999Z' ) -- 9999-12-31 23:59:59.99 +00:00
|
data/test/schema_test.rb
CHANGED
@@ -373,6 +373,21 @@ class SchemaTest < TinyTds::TestCase
|
|
373
373
|
else
|
374
374
|
assert_equal '9999-12-31 23:59:59.9999999', v
|
375
375
|
end
|
376
|
+
# 9999-12-31 23:59:59.123456789
|
377
|
+
v = find_value 74, :datetime2_2
|
378
|
+
if @client.tds_73?
|
379
|
+
assert_instance_of Time, v
|
380
|
+
assert_equal 9999, v.year, 'Year'
|
381
|
+
assert_equal 12, v.month, 'Month'
|
382
|
+
assert_equal 31, v.day, 'Day'
|
383
|
+
assert_equal 23, v.hour, 'Hour'
|
384
|
+
assert_equal 59, v.min, 'Minute'
|
385
|
+
assert_equal 59, v.sec, 'Second'
|
386
|
+
assert_equal 120000, v.usec, 'Microseconds'
|
387
|
+
assert_equal 120000000, v.nsec, 'Nanoseconds'
|
388
|
+
else
|
389
|
+
assert_equal '9999-12-31 23:59:59.12', v
|
390
|
+
end
|
376
391
|
end
|
377
392
|
|
378
393
|
it 'casts datetimeoffset' do
|
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.4
|
5
5
|
platform: x64-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-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|
@@ -140,7 +140,7 @@ files:
|
|
140
140
|
- lib/tiny_tds/version.rb
|
141
141
|
- ports/patches/freetds/0.91.112/Makefile.in.diff
|
142
142
|
- ports/patches/freetds/0.91.112/dblib-30-char-username.diff
|
143
|
-
- ports/patches/freetds/0.95.
|
143
|
+
- ports/patches/freetds/0.95.78/0001-mingw_missing_inet_pton.diff
|
144
144
|
- ports/x86_64-w64-mingw32/bin/libeay32-1.0.2e-x86_64-w64-mingw32.dll
|
145
145
|
- ports/x86_64-w64-mingw32/bin/libiconv-2.dll
|
146
146
|
- ports/x86_64-w64-mingw32/bin/libsybdb-5.dll
|