tiny_tds 2.1.0.pre4-x64-mingw32 → 2.1.3-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -3
- data/CHANGELOG.md +21 -0
- data/ISSUE_TEMPLATE.md +32 -6
- data/README.md +30 -15
- data/VERSION +1 -1
- data/appveyor.yml +13 -6
- data/ext/tiny_tds/client.c +3 -3
- data/ext/tiny_tds/client.h +1 -0
- data/ext/tiny_tds/extconf.rb +17 -13
- data/ext/tiny_tds/extconsts.rb +2 -2
- data/ext/tiny_tds/result.c +7 -6
- data/tasks/native_gem.rake +1 -1
- data/tasks/ports.rake +6 -8
- data/tasks/ports/openssl.rb +2 -18
- data/test/bin/setup.sh +1 -1
- data/test/client_test.rb +46 -38
- data/test/gem_test.rb +15 -15
- data/test/result_test.rb +41 -41
- data/test/schema_test.rb +22 -22
- data/test/test_helper.rb +2 -2
- data/test/thread_test.rb +1 -1
- data/tiny_tds.gemspec +2 -2
- metadata +35 -39
- data/BACKERS.md +0 -32
- data/circle.yml +0 -31
data/test/schema_test.rb
CHANGED
@@ -14,7 +14,7 @@ class SchemaTest < TinyTds::TestCase
|
|
14
14
|
describe 'for shared types' do
|
15
15
|
|
16
16
|
it 'casts bigint' do
|
17
|
-
assert_equal -9223372036854775807, find_value(11, :bigint)
|
17
|
+
assert_equal (-9223372036854775807), find_value(11, :bigint)
|
18
18
|
assert_equal 9223372036854775806, find_value(12, :bigint)
|
19
19
|
end
|
20
20
|
|
@@ -76,10 +76,10 @@ class SchemaTest < TinyTds::TestCase
|
|
76
76
|
|
77
77
|
it 'casts decimal' do
|
78
78
|
assert_instance_of BigDecimal, find_value(91, :decimal_9_2)
|
79
|
-
assert_equal BigDecimal
|
80
|
-
assert_equal BigDecimal
|
81
|
-
assert_equal BigDecimal
|
82
|
-
assert_equal BigDecimal
|
79
|
+
assert_equal BigDecimal('12345.01'), find_value(91, :decimal_9_2)
|
80
|
+
assert_equal BigDecimal('1234567.89'), find_value(92, :decimal_9_2)
|
81
|
+
assert_equal BigDecimal('0.0'), find_value(93, :decimal_16_4)
|
82
|
+
assert_equal BigDecimal('123456789012.3456'), find_value(94, :decimal_16_4)
|
83
83
|
end
|
84
84
|
|
85
85
|
it 'casts float' do
|
@@ -96,15 +96,15 @@ class SchemaTest < TinyTds::TestCase
|
|
96
96
|
end
|
97
97
|
|
98
98
|
it 'casts int' do
|
99
|
-
assert_equal -2147483647, find_value(151, :int)
|
99
|
+
assert_equal (-2147483647), find_value(151, :int)
|
100
100
|
assert_equal 2147483646, find_value(152, :int)
|
101
101
|
end
|
102
102
|
|
103
103
|
it 'casts money' do
|
104
104
|
assert_instance_of BigDecimal, find_value(161, :money)
|
105
|
-
assert_equal BigDecimal
|
106
|
-
assert_equal BigDecimal
|
107
|
-
assert_equal BigDecimal
|
105
|
+
assert_equal BigDecimal('4.20'), find_value(161, :money)
|
106
|
+
assert_equal BigDecimal('922337203685477.5806'), find_value(163 ,:money)
|
107
|
+
assert_equal BigDecimal('-922337203685477.5807'), find_value(162 ,:money)
|
108
108
|
end
|
109
109
|
|
110
110
|
it 'casts nchar' do
|
@@ -170,15 +170,15 @@ class SchemaTest < TinyTds::TestCase
|
|
170
170
|
end
|
171
171
|
|
172
172
|
it 'casts smallint' do
|
173
|
-
assert_equal -32767, find_value(241, :smallint)
|
173
|
+
assert_equal (-32767), find_value(241, :smallint)
|
174
174
|
assert_equal 32766, find_value(242, :smallint)
|
175
175
|
end
|
176
176
|
|
177
177
|
it 'casts smallmoney' do
|
178
178
|
assert_instance_of BigDecimal, find_value(251, :smallmoney)
|
179
|
-
assert_equal BigDecimal
|
180
|
-
assert_equal BigDecimal
|
181
|
-
assert_equal BigDecimal
|
179
|
+
assert_equal BigDecimal("4.20"), find_value(251, :smallmoney)
|
180
|
+
assert_equal BigDecimal("-214748.3647"), find_value(252, :smallmoney)
|
181
|
+
assert_equal BigDecimal("214748.3646"), find_value(253, :smallmoney)
|
182
182
|
end
|
183
183
|
|
184
184
|
it 'casts text' do
|
@@ -396,15 +396,15 @@ class SchemaTest < TinyTds::TestCase
|
|
396
396
|
if @client.tds_73?
|
397
397
|
assertions = lambda {
|
398
398
|
assert_instance_of Time, v
|
399
|
-
assert_equal 1984, v.year,
|
400
|
-
assert_equal 1, v.month,
|
401
|
-
assert_equal 24, v.day,
|
402
|
-
assert_equal 4, v.hour,
|
403
|
-
assert_equal 20, v.min,
|
404
|
-
assert_equal 59, v.sec,
|
405
|
-
assert_equal 123456, v.usec,
|
406
|
-
assert_equal 123456700, v.nsec,
|
407
|
-
assert_equal -28800, v.utc_offset, 'Offset'
|
399
|
+
assert_equal 1984, v.year, 'Year'
|
400
|
+
assert_equal 1, v.month, 'Month'
|
401
|
+
assert_equal 24, v.day, 'Day'
|
402
|
+
assert_equal 4, v.hour, 'Hour'
|
403
|
+
assert_equal 20, v.min, 'Minute'
|
404
|
+
assert_equal 59, v.sec, 'Second'
|
405
|
+
assert_equal 123456, v.usec, 'Microseconds'
|
406
|
+
assert_equal 123456700, v.nsec, 'Nanoseconds'
|
407
|
+
assert_equal (-28800), v.utc_offset, 'Offset'
|
408
408
|
}
|
409
409
|
assertions.call
|
410
410
|
v = find_value 84, :datetimeoffset_7, timezone: :local
|
data/test/test_helper.rb
CHANGED
@@ -89,11 +89,11 @@ module TinyTds
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def connection_timeout
|
92
|
-
sqlserver_azure? ? 20 :
|
92
|
+
sqlserver_azure? ? 20 : 8
|
93
93
|
end
|
94
94
|
|
95
95
|
def assert_client_works(client)
|
96
|
-
client.execute("SELECT 'client_works' as [client_works]").each.must_equal [{'client_works' => 'client_works'}]
|
96
|
+
_(client.execute("SELECT 'client_works' as [client_works]").each).must_equal [{'client_works' => 'client_works'}]
|
97
97
|
end
|
98
98
|
|
99
99
|
def assert_new_connections_work
|
data/test/thread_test.rb
CHANGED
@@ -49,7 +49,7 @@ class ThreadTest < TinyTds::TestCase
|
|
49
49
|
begin
|
50
50
|
result = client.execute "select dbname()"
|
51
51
|
result.each { |r| puts r }
|
52
|
-
rescue Exception =>
|
52
|
+
rescue Exception => _e
|
53
53
|
# We are throwing an error on purpose here since 0.6.1 would
|
54
54
|
# segfault on errors thrown in threads
|
55
55
|
end
|
data/tiny_tds.gemspec
CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.required_ruby_version = '>= 2.0.0'
|
22
22
|
s.metadata['msys2_mingw_dependencies'] = 'freetds'
|
23
23
|
s.add_development_dependency 'mini_portile2', '~> 2.0'
|
24
|
-
s.add_development_dependency 'rake', '~>
|
24
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
25
25
|
s.add_development_dependency 'rake-compiler', '~> 1.0'
|
26
|
-
s.add_development_dependency 'rake-compiler-dock', '~>
|
26
|
+
s.add_development_dependency 'rake-compiler-dock', '~> 1.0'
|
27
27
|
s.add_development_dependency 'minitest', '~> 5.6'
|
28
28
|
s.add_development_dependency 'connection_pool', '~> 2.2'
|
29
29
|
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: 2.1.
|
4
|
+
version: 2.1.3
|
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:
|
13
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '13.0'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '13.0'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake-compiler
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,14 +60,14 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: '1.0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: '1.0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: minitest
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,7 +112,6 @@ files:
|
|
112
112
|
- ".gitignore"
|
113
113
|
- ".rubocop.yml"
|
114
114
|
- ".travis.yml"
|
115
|
-
- BACKERS.md
|
116
115
|
- CHANGELOG.md
|
117
116
|
- CODE_OF_CONDUCT.md
|
118
117
|
- Gemfile
|
@@ -124,7 +123,6 @@ files:
|
|
124
123
|
- appveyor.yml
|
125
124
|
- bin/defncopy-ttds
|
126
125
|
- bin/tsql-ttds
|
127
|
-
- circle.yml
|
128
126
|
- exe/.keep
|
129
127
|
- ext/tiny_tds/client.c
|
130
128
|
- ext/tiny_tds/client.h
|
@@ -135,11 +133,10 @@ files:
|
|
135
133
|
- ext/tiny_tds/tiny_tds_ext.c
|
136
134
|
- ext/tiny_tds/tiny_tds_ext.h
|
137
135
|
- lib/tiny_tds.rb
|
138
|
-
- lib/tiny_tds/2.0/tiny_tds.so
|
139
|
-
- lib/tiny_tds/2.1/tiny_tds.so
|
140
|
-
- lib/tiny_tds/2.2/tiny_tds.so
|
141
|
-
- lib/tiny_tds/2.3/tiny_tds.so
|
142
136
|
- lib/tiny_tds/2.4/tiny_tds.so
|
137
|
+
- lib/tiny_tds/2.5/tiny_tds.so
|
138
|
+
- lib/tiny_tds/2.6/tiny_tds.so
|
139
|
+
- lib/tiny_tds/2.7/tiny_tds.so
|
143
140
|
- lib/tiny_tds/bin.rb
|
144
141
|
- lib/tiny_tds/client.rb
|
145
142
|
- lib/tiny_tds/error.rb
|
@@ -149,19 +146,19 @@ files:
|
|
149
146
|
- patches/freetds/1.00.27/0001-mingw_missing_inet_pton.diff
|
150
147
|
- patches/freetds/1.00.27/0002-Don-t-use-MSYS2-file-libws2_32.diff
|
151
148
|
- patches/libiconv/1.14/1-avoid-gets-error.patch
|
152
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
153
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
154
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
155
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
156
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
157
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
158
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
159
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
160
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
161
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
162
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
163
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
164
|
-
- ports/x86_64-w64-mingw32/freetds/1.
|
149
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/bsqldb.exe
|
150
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/datacopy.exe
|
151
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/defncopy.exe
|
152
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/freebcp.exe
|
153
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/libct-4.dll
|
154
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/libsybdb-5.dll
|
155
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/osql
|
156
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/tdspool.exe
|
157
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/bin/tsql.exe
|
158
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/lib/libct.dll.a
|
159
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/lib/libct.la
|
160
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/lib/libsybdb.dll.a
|
161
|
+
- ports/x86_64-w64-mingw32/freetds/1.1.24/lib/libsybdb.la
|
165
162
|
- ports/x86_64-w64-mingw32/libiconv/1.15/bin/iconv.exe
|
166
163
|
- ports/x86_64-w64-mingw32/libiconv/1.15/bin/libcharset-1.dll
|
167
164
|
- ports/x86_64-w64-mingw32/libiconv/1.15/bin/libiconv-2.dll
|
@@ -170,14 +167,14 @@ files:
|
|
170
167
|
- ports/x86_64-w64-mingw32/libiconv/1.15/lib/libcharset.la
|
171
168
|
- ports/x86_64-w64-mingw32/libiconv/1.15/lib/libiconv.dll.a
|
172
169
|
- ports/x86_64-w64-mingw32/libiconv/1.15/lib/libiconv.la
|
173
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
174
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
175
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
176
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
177
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
178
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
179
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
180
|
-
- ports/x86_64-w64-mingw32/openssl/1.1.
|
170
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/bin/c_rehash
|
171
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/bin/libcrypto-1_1-x64.dll
|
172
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/bin/libssl-1_1-x64.dll
|
173
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/bin/openssl.exe
|
174
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/lib/libcrypto.a
|
175
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/lib/libcrypto.dll.a
|
176
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/lib/libssl.a
|
177
|
+
- ports/x86_64-w64-mingw32/openssl/1.1.1d/lib/libssl.dll.a
|
181
178
|
- tasks/native_gem.rake
|
182
179
|
- tasks/package.rake
|
183
180
|
- tasks/ports.rake
|
@@ -222,18 +219,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
219
|
requirements:
|
223
220
|
- - ">="
|
224
221
|
- !ruby/object:Gem::Version
|
225
|
-
version: '2.
|
222
|
+
version: '2.4'
|
226
223
|
- - "<"
|
227
224
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
225
|
+
version: 2.8.dev
|
229
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
227
|
requirements:
|
231
|
-
- - "
|
228
|
+
- - ">="
|
232
229
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
230
|
+
version: '0'
|
234
231
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.6.12
|
232
|
+
rubygems_version: 3.1.2
|
237
233
|
signing_key:
|
238
234
|
specification_version: 4
|
239
235
|
summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
|
data/BACKERS.md
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Backers
|
2
|
-
|
3
|
-
You can join in supporting TinyTDS and the Rails SQL Server Adapter development by [pledging on Patreon](https://www.patreon.com/metaskills)! Backers in the same pledge level appear in the order of pledge date.
|
4
|
-
|
5
|
-
### $2000
|
6
|
-
|
7
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611218)
|
8
|
-
|
9
|
-
|
10
|
-
### $500
|
11
|
-
|
12
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611209)
|
13
|
-
|
14
|
-
|
15
|
-
### $250
|
16
|
-
|
17
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611199)
|
18
|
-
|
19
|
-
|
20
|
-
### $100
|
21
|
-
|
22
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611196)
|
23
|
-
|
24
|
-
|
25
|
-
### $50+
|
26
|
-
|
27
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611186)
|
28
|
-
|
29
|
-
|
30
|
-
### $10+
|
31
|
-
|
32
|
-
[It could be you!](https://www.patreon.com/bePatron?c=765225&rid=1611149)
|
data/circle.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
general:
|
2
|
-
branches:
|
3
|
-
ignore:
|
4
|
-
- /dev.*/
|
5
|
-
|
6
|
-
machine:
|
7
|
-
environment:
|
8
|
-
PATH: /opt/local/bin:${PATH}
|
9
|
-
TESTOPTS: -v
|
10
|
-
TINYTDS_UNIT_HOST: localhost
|
11
|
-
services:
|
12
|
-
- docker
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
override:
|
16
|
-
- sudo ./test/bin/install-openssl.sh
|
17
|
-
- sudo ./test/bin/install-freetds.sh
|
18
|
-
- rvm-exec 2.1.9 bundle install
|
19
|
-
- rvm-exec 2.2.5 bundle install
|
20
|
-
- rvm-exec 2.3.1 bundle install
|
21
|
-
|
22
|
-
database:
|
23
|
-
post:
|
24
|
-
- docker info
|
25
|
-
- ./test/bin/setup.sh
|
26
|
-
|
27
|
-
test:
|
28
|
-
override:
|
29
|
-
- rvm-exec 2.1.9 bundle exec rake
|
30
|
-
- rvm-exec 2.2.5 bundle exec rake
|
31
|
-
- rvm-exec 2.3.1 bundle exec rake
|