tiny_tds 0.9.5.beta.3-x86-mingw32 → 0.9.5.beta.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25e8c0cf08419ab6820e83d31d55104b21f3b0c8
4
- data.tar.gz: 0745288de31f5db86491b9491fb591c88c2ec9f0
3
+ metadata.gz: f7b96716633f8100bbaea0487269f2867593dc2d
4
+ data.tar.gz: 0eb81bd79e51e1eb8be5237afdec38fa25337174
5
5
  SHA512:
6
- metadata.gz: abde734d86fbfd13c6fa28dd116aa8776a8e76443284118810e2cd3d2d3424a7c714ccd378f9d0c2587e6f6f2ad6016ba77245f02cf90875ace687303cb22586
7
- data.tar.gz: bfb57c88452e37e51bc66133270416c0f7539cbf4cfd8afdf2e9b5106150e2b2eaa75a0c0ee695893422064edc2bc230b8bf90f75155bf8756dfc6e546aacfd1
6
+ metadata.gz: 5d4998706e705dd228c5c6cce5039e53ffe7f4407273b2a1a89d5779ed0f8aea02e18b571e00869949826a48526ffd62dedc549f2f979a7be86f1e28c87d8836
7
+ data.tar.gz: 22ca9c05b9c8ac56bee41e00bc0be4c72f5cc4bc738d7f7d038779adcf02a3f1a5f560aeb031eae79ff50fbb50dbf5037d2211a386fb10c917faf377d3772c73
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.3
1
+ 0.9.5.beta.4
data/exe/defncopy.exe CHANGED
Binary file
data/exe/tsql.exe CHANGED
Binary file
@@ -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.76"
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
  }
@@ -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.3
4
+ version: 0.9.5.beta.4
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-22 00:00:00.000000000 Z
13
+ date: 2015-12-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -144,7 +144,7 @@ files:
144
144
  - ports/i686-w64-mingw32/bin/ssleay32-1.0.2e-i686-w64-mingw32.dll
145
145
  - ports/patches/freetds/0.91.112/Makefile.in.diff
146
146
  - ports/patches/freetds/0.91.112/dblib-30-char-username.diff
147
- - ports/patches/freetds/0.95.76/0001-mingw_missing_inet_pton.diff
147
+ - ports/patches/freetds/0.95.78/0001-mingw_missing_inet_pton.diff
148
148
  - test/appveyor/dbsetup.ps1
149
149
  - test/appveyor/dbsetup.sql
150
150
  - test/benchmark/query.rb