tiny_tds 0.9.5.beta.6 → 0.9.5.beta.7

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: 391e3f79753350dd41b01985e14aade3efdf6b05
4
- data.tar.gz: 2cbf5c4730f86c840a0c0a31588094c8255349f2
3
+ metadata.gz: 8401d1c4808d9a579a902e27faf97396c40c65c2
4
+ data.tar.gz: 523bf9861a9f13768e6e32c641135dabaebb11af
5
5
  SHA512:
6
- metadata.gz: 4d28d6650415bad152c39bee5e525df667aa5ff2da3a5fac6b267cd41c0fa9cc105f0a893f6ef2fb51caebeb7fcde54922285d91d157d0626b31c2ce86e91b69
7
- data.tar.gz: d6a0e594660e50bf5687db7be57d3dd888c46cc42cda40923411a3fbb566ac68aca4963f179cb2a62dbe2c462e5f0066facb30add3c7a3d9a9b6a4b395966450
6
+ metadata.gz: dc2db3827dd9bb7f31585b9f8e9c6c00de34be95f272ce12bbd7c18bf2ffe1373bc323b97136c38f07324bca4581f42db1cd5bfcda3beae5ab34d8a23243945a
7
+ data.tar.gz: 7d602a6413f4e1d89319dc74c7bbe301329e3d79c19d01d909e40ee96084a4ce1ae1a19c3cf659bdf66f7e4f1631abc9073fbb262eb43eba2a64f4a5e69d6409
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.6
1
+ 0.9.5.beta.7
@@ -307,7 +307,8 @@ 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.second * 1000000000) + dr2.nanosecond), opt_onebil);
310
+ long long numerator = ((long)dr2.second * (long long)1000000000) + (long long)dr2.nanosecond;
311
+ VALUE rational_sec = rb_Rational(LL2NUM(numerator), opt_onebil);
311
312
  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
313
  break;
313
314
  }
data/test/schema_test.rb CHANGED
@@ -391,7 +391,6 @@ 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?
395
394
  # 1984-01-24T04:20:00.1234567-08:00
396
395
  v = find_value 84, :datetimeoffset_7
397
396
  if @client.tds_73?
data/test/test_helper.rb CHANGED
@@ -134,10 +134,6 @@ 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
-
141
137
  def rubyRbx?
142
138
  RUBY_DESCRIPTION =~ /rubinius/i
143
139
  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.6
4
+ version: 0.9.5.beta.7
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-29 00:00:00.000000000 Z
13
+ date: 2016-01-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -198,3 +198,4 @@ test_files:
198
198
  - test/schema_test.rb
199
199
  - test/test_helper.rb
200
200
  - test/thread_test.rb
201
+ has_rdoc: