tiny_tds 0.9.5.beta.3 → 0.9.5.beta.4

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: 69b63ae949503a40cb1e8c12258d3ec1c446cac0
4
- data.tar.gz: 2c94123af8caae780b5ab62403b38b455d209b7a
3
+ metadata.gz: 281f4262e1ff52acae14b3aece98e5287a213244
4
+ data.tar.gz: 5cc584b410c662be2f000d8974515c079f046777
5
5
  SHA512:
6
- metadata.gz: 84244891e399a9888786bbe98af841772150b4a5bd2b0be87c48a5d682b522df4b1f418a55f77c0d3103a9b7013c9fe3288b9a3f0fac6c73d7dde2166c011241
7
- data.tar.gz: 28bccae5b4bc18487403262e013fcc7f3cb2048ae9ff53e6f6e90ee7bbfc7bb918af9e5573361a15425f55a248daad062b303f75064ca34200e74123810db0d9
6
+ metadata.gz: 62376e7f6ce289160e406625d1b6ec4e5566a393770f11037c56cc8772bf83b00d8db06eb412a5a11733f67443f35009e1149698e136fde0265bad950b2e04f2
7
+ data.tar.gz: 6a1944755b75319f73395ce2e40c2809730ed5d3d7ecac34dfd65c87a0736208b229553b5905e17d485de8708272f77f4a1cb227b784fdee28f990df32d853ba
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.3
1
+ 0.9.5.beta.4
@@ -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: ruby
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-23 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
@@ -136,7 +136,7 @@ files:
136
136
  - lib/tiny_tds/version.rb
137
137
  - ports/patches/freetds/0.91.112/Makefile.in.diff
138
138
  - ports/patches/freetds/0.91.112/dblib-30-char-username.diff
139
- - ports/patches/freetds/0.95.76/0001-mingw_missing_inet_pton.diff
139
+ - ports/patches/freetds/0.95.78/0001-mingw_missing_inet_pton.diff
140
140
  - test/appveyor/dbsetup.ps1
141
141
  - test/appveyor/dbsetup.sql
142
142
  - test/benchmark/query.rb