tiny_tds 2.1.4-x86-mingw32 → 2.1.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +407 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +12 -2
  5. data/Gemfile +0 -7
  6. data/README.md +2 -4
  7. data/Rakefile +19 -10
  8. data/VERSION +1 -1
  9. data/docker-compose.yml +19 -7
  10. data/ext/tiny_tds/client.c +6 -3
  11. data/ext/tiny_tds/extconf.rb +21 -2
  12. data/ext/tiny_tds/extconsts.rb +1 -1
  13. data/ext/tiny_tds/result.c +5 -2
  14. data/lib/tiny_tds/2.4/tiny_tds.so +0 -0
  15. data/lib/tiny_tds/2.5/tiny_tds.so +0 -0
  16. data/lib/tiny_tds/2.6/tiny_tds.so +0 -0
  17. data/lib/tiny_tds/2.7/tiny_tds.so +0 -0
  18. data/lib/tiny_tds/3.0/tiny_tds.so +0 -0
  19. data/lib/tiny_tds/gem.rb +1 -6
  20. data/ports/x86-mingw32/freetds/1.1.24/bin/bsqldb.exe +0 -0
  21. data/ports/x86-mingw32/freetds/1.1.24/bin/datacopy.exe +0 -0
  22. data/ports/x86-mingw32/freetds/1.1.24/bin/defncopy.exe +0 -0
  23. data/ports/x86-mingw32/freetds/1.1.24/bin/freebcp.exe +0 -0
  24. data/ports/x86-mingw32/freetds/1.1.24/bin/libct-4.dll +0 -0
  25. data/ports/x86-mingw32/freetds/1.1.24/bin/libsybdb-5.dll +0 -0
  26. data/ports/x86-mingw32/freetds/1.1.24/bin/tdspool.exe +0 -0
  27. data/ports/x86-mingw32/freetds/1.1.24/bin/tsql.exe +0 -0
  28. data/ports/{i686-w64-mingw32 → x86-mingw32}/freetds/1.1.24/lib/libct.dll.a +0 -0
  29. data/ports/{i686-w64-mingw32 → x86-mingw32}/freetds/1.1.24/lib/libct.la +2 -2
  30. data/ports/{i686-w64-mingw32 → x86-mingw32}/freetds/1.1.24/lib/libsybdb.dll.a +0 -0
  31. data/ports/{i686-w64-mingw32 → x86-mingw32}/freetds/1.1.24/lib/libsybdb.la +2 -2
  32. data/ports/x86-mingw32/libiconv/1.15/bin/iconv.exe +0 -0
  33. data/ports/x86-mingw32/libiconv/1.15/bin/libcharset-1.dll +0 -0
  34. data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/bin/libiconv-2.dll +0 -0
  35. data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/lib/libcharset.dll.a +0 -0
  36. data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/lib/libcharset.la +2 -2
  37. data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/lib/libiconv.dll.a +0 -0
  38. data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/lib/libiconv.la +2 -2
  39. data/ports/x86-mingw32/openssl/1.1.1s/bin/c_rehash +251 -0
  40. data/ports/x86-mingw32/openssl/1.1.1s/bin/libcrypto-1_1.dll +0 -0
  41. data/ports/x86-mingw32/openssl/1.1.1s/bin/libssl-1_1.dll +0 -0
  42. data/ports/x86-mingw32/openssl/1.1.1s/bin/openssl.exe +0 -0
  43. data/ports/x86-mingw32/openssl/1.1.1s/lib/libcrypto.a +0 -0
  44. data/ports/{i686-w64-mingw32/openssl/1.1.1d → x86-mingw32/openssl/1.1.1s}/lib/libcrypto.dll.a +0 -0
  45. data/ports/x86-mingw32/openssl/1.1.1s/lib/libssl.a +0 -0
  46. data/ports/{i686-w64-mingw32/openssl/1.1.1d → x86-mingw32/openssl/1.1.1s}/lib/libssl.dll.a +0 -0
  47. data/setup_cimgruby_dev.sh +25 -0
  48. data/start_dev.sh +21 -0
  49. data/tasks/native_gem.rake +15 -6
  50. data/tasks/ports/libiconv.rb +0 -17
  51. data/tasks/ports/recipe.rb +16 -4
  52. data/tasks/ports.rake +58 -35
  53. data/test/bin/install-mssql.ps1 +31 -0
  54. data/test/bin/install-mssqltools.sh +9 -0
  55. data/test/bin/setup_tinytds_db.sh +7 -0
  56. data/test/bin/setup_volume_permissions.sh +10 -0
  57. data/test/client_test.rb +22 -4
  58. data/test/gem_test.rb +11 -13
  59. data/test/sql/db-create.sql +18 -0
  60. data/test/sql/db-login.sql +38 -0
  61. data/test/test_helper.rb +16 -7
  62. data/tiny_tds.gemspec +7 -6
  63. metadata +69 -50
  64. data/.travis.yml +0 -25
  65. data/appveyor.yml +0 -72
  66. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/bsqldb.exe +0 -0
  67. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/datacopy.exe +0 -0
  68. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/defncopy.exe +0 -0
  69. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/freebcp.exe +0 -0
  70. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/libct-4.dll +0 -0
  71. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/libsybdb-5.dll +0 -0
  72. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/tdspool.exe +0 -0
  73. data/ports/i686-w64-mingw32/freetds/1.1.24/bin/tsql.exe +0 -0
  74. data/ports/i686-w64-mingw32/libiconv/1.15/bin/iconv.exe +0 -0
  75. data/ports/i686-w64-mingw32/libiconv/1.15/bin/libcharset-1.dll +0 -0
  76. data/ports/i686-w64-mingw32/openssl/1.1.1d/bin/c_rehash +0 -232
  77. data/ports/i686-w64-mingw32/openssl/1.1.1d/bin/libcrypto-1_1.dll +0 -0
  78. data/ports/i686-w64-mingw32/openssl/1.1.1d/bin/libssl-1_1.dll +0 -0
  79. data/ports/i686-w64-mingw32/openssl/1.1.1d/bin/openssl.exe +0 -0
  80. data/ports/i686-w64-mingw32/openssl/1.1.1d/lib/libcrypto.a +0 -0
  81. data/ports/i686-w64-mingw32/openssl/1.1.1d/lib/libssl.a +0 -0
  82. data/test/appveyor/dbsetup.ps1 +0 -27
  83. data/test/appveyor/dbsetup.sql +0 -9
  84. data/test/bin/setup.sh +0 -19
  85. /data/ports/{i686-w64-mingw32 → x86-mingw32}/freetds/1.1.24/bin/osql +0 -0
  86. /data/ports/{i686-w64-mingw32 → x86-mingw32}/libiconv/1.15/lib/charset.alias +0 -0
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
4
+ version: 2.1.6
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: 2021-05-10 00:00:00.000000000 Z
13
+ date: 2023-12-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -18,84 +18,98 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '2.0'
21
+ version: 2.5.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '2.0'
28
+ version: 2.5.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '13.0'
35
+ version: 13.0.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: '13.0'
42
+ version: 13.0.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake-compiler
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.0'
49
+ version: '1.2'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '1.0'
56
+ version: '1.2'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake-compiler-dock
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.0'
63
+ version: 1.3.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: '1.0'
70
+ version: 1.3.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: minitest
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '5.6'
77
+ version: 5.14.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '5.6'
84
+ version: 5.14.0
85
+ - !ruby/object:Gem::Dependency
86
+ name: minitest-ci
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: 3.4.0
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: 3.4.0
85
99
  - !ruby/object:Gem::Dependency
86
100
  name: connection_pool
87
101
  requirement: !ruby/object:Gem::Requirement
88
102
  requirements:
89
103
  - - "~>"
90
104
  - !ruby/object:Gem::Version
91
- version: '2.2'
105
+ version: 2.2.0
92
106
  type: :development
93
107
  prerelease: false
94
108
  version_requirements: !ruby/object:Gem::Requirement
95
109
  requirements:
96
110
  - - "~>"
97
111
  - !ruby/object:Gem::Version
98
- version: '2.2'
112
+ version: 2.2.0
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: toxiproxy
101
115
  requirement: !ruby/object:Gem::Requirement
@@ -121,11 +135,11 @@ executables:
121
135
  extensions: []
122
136
  extra_rdoc_files: []
123
137
  files:
138
+ - ".circleci/config.yml"
124
139
  - ".codeclimate.yml"
125
140
  - ".gitattributes"
126
141
  - ".gitignore"
127
142
  - ".rubocop.yml"
128
- - ".travis.yml"
129
143
  - CHANGELOG.md
130
144
  - CODE_OF_CONDUCT.md
131
145
  - Gemfile
@@ -134,7 +148,6 @@ files:
134
148
  - README.md
135
149
  - Rakefile
136
150
  - VERSION
137
- - appveyor.yml
138
151
  - bin/defncopy-ttds
139
152
  - bin/tsql-ttds
140
153
  - docker-compose.yml
@@ -152,6 +165,7 @@ files:
152
165
  - lib/tiny_tds/2.5/tiny_tds.so
153
166
  - lib/tiny_tds/2.6/tiny_tds.so
154
167
  - lib/tiny_tds/2.7/tiny_tds.so
168
+ - lib/tiny_tds/3.0/tiny_tds.so
155
169
  - lib/tiny_tds/bin.rb
156
170
  - lib/tiny_tds/client.rb
157
171
  - lib/tiny_tds/error.rb
@@ -161,35 +175,37 @@ files:
161
175
  - patches/freetds/1.00.27/0001-mingw_missing_inet_pton.diff
162
176
  - patches/freetds/1.00.27/0002-Don-t-use-MSYS2-file-libws2_32.diff
163
177
  - patches/libiconv/1.14/1-avoid-gets-error.patch
164
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/bsqldb.exe
165
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/datacopy.exe
166
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/defncopy.exe
167
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/freebcp.exe
168
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/libct-4.dll
169
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/libsybdb-5.dll
170
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/osql
171
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/tdspool.exe
172
- - ports/i686-w64-mingw32/freetds/1.1.24/bin/tsql.exe
173
- - ports/i686-w64-mingw32/freetds/1.1.24/lib/libct.dll.a
174
- - ports/i686-w64-mingw32/freetds/1.1.24/lib/libct.la
175
- - ports/i686-w64-mingw32/freetds/1.1.24/lib/libsybdb.dll.a
176
- - ports/i686-w64-mingw32/freetds/1.1.24/lib/libsybdb.la
177
- - ports/i686-w64-mingw32/libiconv/1.15/bin/iconv.exe
178
- - ports/i686-w64-mingw32/libiconv/1.15/bin/libcharset-1.dll
179
- - ports/i686-w64-mingw32/libiconv/1.15/bin/libiconv-2.dll
180
- - ports/i686-w64-mingw32/libiconv/1.15/lib/charset.alias
181
- - ports/i686-w64-mingw32/libiconv/1.15/lib/libcharset.dll.a
182
- - ports/i686-w64-mingw32/libiconv/1.15/lib/libcharset.la
183
- - ports/i686-w64-mingw32/libiconv/1.15/lib/libiconv.dll.a
184
- - ports/i686-w64-mingw32/libiconv/1.15/lib/libiconv.la
185
- - ports/i686-w64-mingw32/openssl/1.1.1d/bin/c_rehash
186
- - ports/i686-w64-mingw32/openssl/1.1.1d/bin/libcrypto-1_1.dll
187
- - ports/i686-w64-mingw32/openssl/1.1.1d/bin/libssl-1_1.dll
188
- - ports/i686-w64-mingw32/openssl/1.1.1d/bin/openssl.exe
189
- - ports/i686-w64-mingw32/openssl/1.1.1d/lib/libcrypto.a
190
- - ports/i686-w64-mingw32/openssl/1.1.1d/lib/libcrypto.dll.a
191
- - ports/i686-w64-mingw32/openssl/1.1.1d/lib/libssl.a
192
- - ports/i686-w64-mingw32/openssl/1.1.1d/lib/libssl.dll.a
178
+ - ports/x86-mingw32/freetds/1.1.24/bin/bsqldb.exe
179
+ - ports/x86-mingw32/freetds/1.1.24/bin/datacopy.exe
180
+ - ports/x86-mingw32/freetds/1.1.24/bin/defncopy.exe
181
+ - ports/x86-mingw32/freetds/1.1.24/bin/freebcp.exe
182
+ - ports/x86-mingw32/freetds/1.1.24/bin/libct-4.dll
183
+ - ports/x86-mingw32/freetds/1.1.24/bin/libsybdb-5.dll
184
+ - ports/x86-mingw32/freetds/1.1.24/bin/osql
185
+ - ports/x86-mingw32/freetds/1.1.24/bin/tdspool.exe
186
+ - ports/x86-mingw32/freetds/1.1.24/bin/tsql.exe
187
+ - ports/x86-mingw32/freetds/1.1.24/lib/libct.dll.a
188
+ - ports/x86-mingw32/freetds/1.1.24/lib/libct.la
189
+ - ports/x86-mingw32/freetds/1.1.24/lib/libsybdb.dll.a
190
+ - ports/x86-mingw32/freetds/1.1.24/lib/libsybdb.la
191
+ - ports/x86-mingw32/libiconv/1.15/bin/iconv.exe
192
+ - ports/x86-mingw32/libiconv/1.15/bin/libcharset-1.dll
193
+ - ports/x86-mingw32/libiconv/1.15/bin/libiconv-2.dll
194
+ - ports/x86-mingw32/libiconv/1.15/lib/charset.alias
195
+ - ports/x86-mingw32/libiconv/1.15/lib/libcharset.dll.a
196
+ - ports/x86-mingw32/libiconv/1.15/lib/libcharset.la
197
+ - ports/x86-mingw32/libiconv/1.15/lib/libiconv.dll.a
198
+ - ports/x86-mingw32/libiconv/1.15/lib/libiconv.la
199
+ - ports/x86-mingw32/openssl/1.1.1s/bin/c_rehash
200
+ - ports/x86-mingw32/openssl/1.1.1s/bin/libcrypto-1_1.dll
201
+ - ports/x86-mingw32/openssl/1.1.1s/bin/libssl-1_1.dll
202
+ - ports/x86-mingw32/openssl/1.1.1s/bin/openssl.exe
203
+ - ports/x86-mingw32/openssl/1.1.1s/lib/libcrypto.a
204
+ - ports/x86-mingw32/openssl/1.1.1s/lib/libcrypto.dll.a
205
+ - ports/x86-mingw32/openssl/1.1.1s/lib/libssl.a
206
+ - ports/x86-mingw32/openssl/1.1.1s/lib/libssl.dll.a
207
+ - setup_cimgruby_dev.sh
208
+ - start_dev.sh
193
209
  - tasks/native_gem.rake
194
210
  - tasks/package.rake
195
211
  - tasks/ports.rake
@@ -198,14 +214,15 @@ files:
198
214
  - tasks/ports/openssl.rb
199
215
  - tasks/ports/recipe.rb
200
216
  - tasks/test.rake
201
- - test/appveyor/dbsetup.ps1
202
- - test/appveyor/dbsetup.sql
203
217
  - test/benchmark/query.rb
204
218
  - test/benchmark/query_odbc.rb
205
219
  - test/benchmark/query_tinytds.rb
206
220
  - test/bin/install-freetds.sh
221
+ - test/bin/install-mssql.ps1
222
+ - test/bin/install-mssqltools.sh
207
223
  - test/bin/install-openssl.sh
208
- - test/bin/setup.sh
224
+ - test/bin/setup_tinytds_db.sh
225
+ - test/bin/setup_volume_permissions.sh
209
226
  - test/client_test.rb
210
227
  - test/gem_test.rb
211
228
  - test/result_test.rb
@@ -218,6 +235,8 @@ files:
218
235
  - test/schema/sqlserver_azure.sql
219
236
  - test/schema/sybase_ase.sql
220
237
  - test/schema_test.rb
238
+ - test/sql/db-create.sql
239
+ - test/sql/db-login.sql
221
240
  - test/test_helper.rb
222
241
  - test/thread_test.rb
223
242
  - tiny_tds.gemspec
@@ -237,14 +256,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
256
  version: '2.4'
238
257
  - - "<"
239
258
  - !ruby/object:Gem::Version
240
- version: 2.8.dev
259
+ version: 3.1.dev
241
260
  required_rubygems_version: !ruby/object:Gem::Requirement
242
261
  requirements:
243
262
  - - ">="
244
263
  - !ruby/object:Gem::Version
245
264
  version: '0'
246
265
  requirements: []
247
- rubygems_version: 3.1.2
266
+ rubygems_version: 3.3.26
248
267
  signing_key:
249
268
  specification_version: 4
250
269
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: required
2
- cache: bundler
3
- services:
4
- - docker
5
- env:
6
- global:
7
- - PATH=/opt/local/bin:$PATH
8
- - TESTOPTS="-v"
9
- - TINYTDS_UNIT_HOST=localhost
10
- rvm:
11
- - 2.4.5
12
- - 2.5.3
13
- - 2.6.1
14
- - 2.7.0
15
- before_install:
16
- - docker info
17
- - docker-compose up -d
18
- - sudo ./test/bin/install-openssl.sh
19
- - sudo ./test/bin/install-freetds.sh
20
- install:
21
- - gem install bundler
22
- - bundle --version
23
- - bundle install
24
- script:
25
- - bundle exec rake
data/appveyor.yml DELETED
@@ -1,72 +0,0 @@
1
- init:
2
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
3
- - SET RAKEOPT=-rdevkit
4
- - SET TESTOPTS='-v'
5
- - SET MAKE=make V=1 -j2
6
- clone_depth: 5
7
- skip_tags: true
8
- skip_branch_with_pr: true
9
- matrix:
10
- fast_finish: false
11
- install:
12
- # Output debugging info
13
- - ps: Update-AppveyorBuild -Version "$(Get-Content $env:appveyor_build_folder\VERSION).$env:appveyor_build_number"
14
- - ps: |
15
- if ($env:ruby_version -like "*head*") {
16
- $(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:ruby_version.exe", "$pwd/ruby-setup.exe")
17
- cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:ruby_version
18
- }
19
- - perl --version
20
- - ruby --version
21
- - gem --version
22
- # Update keyring according to https://www.msys2.org/news/#2020-06-29-new-packagers
23
- - C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
24
- - C:\msys64\usr\bin\curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
25
- - ridk exec bash -c "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
26
- - ridk exec bash -c "pacman -U --noconfirm --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
27
- # Update zstd and pacman first https://github.com/msys2/MSYS2-packages/issues/2300
28
- - C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/zstd-1.4.7-1-x86_64.pkg.tar.xz # Must come First, or else pacman will install 1.4.8
29
- - C:\msys64\usr\bin\pacman --noconfirm --upgrade https://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz
30
- # update packages
31
- - C:\msys64\usr\bin\pacman --noconfirm --ask 20 --sync --refresh --refresh --sysupgrade --sysupgrade
32
- # Kill all running msys2 binaries to avoid error "size of shared memory region changed".
33
- # See https://github.com/msys2/MSYS2-packages/issues/258
34
- - powershell -Command "Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process"
35
- # refresh the package list to avoid "error: failed to prepare transaction (could not find database)"
36
- - ridk exec bash -c "pacman --noconfirm -Sy"
37
- # prevent freetds to link to wrong ws2_32 lib on i686-w64-mingw32
38
- - c:/msys64/usr/bin/rm /usr/lib/w32api/libws2_32.a
39
- # Set up project prerequisits
40
- - bundle install
41
- - bundle exec rake ports
42
- build: off
43
- branches:
44
- except:
45
- - /dev.*/
46
- test_script:
47
- - timeout /t 4 /nobreak > NUL
48
- - powershell -File "%APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.ps1"
49
- - timeout /t 4 /nobreak > NUL
50
- - ps: Start-Service 'MSSQL$SQL2014'
51
- - timeout /t 4 /nobreak > NUL
52
- - sqlcmd -S ".\SQL2014" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
53
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014 TDSVER=7.1
54
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2014" TINYTDS_SCHEMA=sqlserver_2014
55
- - ps: Stop-Service 'MSSQL$SQL2014'
56
- - ps: Start-Service 'MSSQL$SQL2012SP1'
57
- - timeout /t 4 /nobreak > NUL
58
- - sqlcmd -S ".\SQL2012SP1" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql
59
- - bundle exec rake ports build test TINYTDS_UNIT_HOST_TEST=localhost TINYTDS_UNIT_DATASERVER="localhost\SQL2012SP1" TINYTDS_SCHEMA=sqlserver_2014
60
- environment:
61
- CI_AZURE_HOST:
62
- secure: 8ydpYysZYKEBKvp6plKlYfepH98/zAuT27FFCaJ9Sss=
63
- TINYTDS_UNIT_AZURE_PASS:
64
- secure: fYKSKV4v+36OFQp2nZdX4DfUpgmy5cm0wuR73cgdmEk=
65
- matrix:
66
- - ruby_version: "24"
67
- - ruby_version: "25-x64"
68
- - ruby_version: "26"
69
- - ruby_version: "head-x64"
70
- on_failure:
71
- - find -name config.log | xargs cat
72
- - find -name compile.log | xargs cat
@@ -1,232 +0,0 @@
1
- #!/usr/bin/env perl
2
-
3
- # WARNING: do not edit!
4
- # Generated by Makefile from tools/c_rehash.in
5
- # Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.
6
- #
7
- # Licensed under the OpenSSL license (the "License"). You may not use
8
- # this file except in compliance with the License. You can obtain a copy
9
- # in the file LICENSE in the source distribution or at
10
- # https://www.openssl.org/source/license.html
11
-
12
- # Perl c_rehash script, scan all files in a directory
13
- # and add symbolic links to their hash values.
14
-
15
- my $dir = "/Users/bvogelzang/Documents/tiny_tds/ports/i686-w64-mingw32/openssl/1.1.1d";
16
- my $prefix = "/Users/bvogelzang/Documents/tiny_tds/ports/i686-w64-mingw32/openssl/1.1.1d";
17
-
18
- my $errorcount = 0;
19
- my $openssl = $ENV{OPENSSL} || "openssl";
20
- my $pwd;
21
- my $x509hash = "-subject_hash";
22
- my $crlhash = "-hash";
23
- my $verbose = 0;
24
- my $symlink_exists=eval {symlink("",""); 1};
25
- my $removelinks = 1;
26
-
27
- ## Parse flags.
28
- while ( $ARGV[0] =~ /^-/ ) {
29
- my $flag = shift @ARGV;
30
- last if ( $flag eq '--');
31
- if ( $flag eq '-old') {
32
- $x509hash = "-subject_hash_old";
33
- $crlhash = "-hash_old";
34
- } elsif ( $flag eq '-h' || $flag eq '-help' ) {
35
- help();
36
- } elsif ( $flag eq '-n' ) {
37
- $removelinks = 0;
38
- } elsif ( $flag eq '-v' ) {
39
- $verbose++;
40
- }
41
- else {
42
- print STDERR "Usage error; try -h.\n";
43
- exit 1;
44
- }
45
- }
46
-
47
- sub help {
48
- print "Usage: c_rehash [-old] [-h] [-help] [-v] [dirs...]\n";
49
- print " -old use old-style digest\n";
50
- print " -h or -help print this help text\n";
51
- print " -v print files removed and linked\n";
52
- exit 0;
53
- }
54
-
55
- eval "require Cwd";
56
- if (defined(&Cwd::getcwd)) {
57
- $pwd=Cwd::getcwd();
58
- } else {
59
- $pwd=`pwd`;
60
- chomp($pwd);
61
- }
62
-
63
- # DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
64
- my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
65
- $ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
66
-
67
- if (! -x $openssl) {
68
- my $found = 0;
69
- foreach (split /$path_delim/, $ENV{PATH}) {
70
- if (-x "$_/$openssl") {
71
- $found = 1;
72
- $openssl = "$_/$openssl";
73
- last;
74
- }
75
- }
76
- if ($found == 0) {
77
- print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
78
- exit 0;
79
- }
80
- }
81
-
82
- if (@ARGV) {
83
- @dirlist = @ARGV;
84
- } elsif ($ENV{SSL_CERT_DIR}) {
85
- @dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
86
- } else {
87
- $dirlist[0] = "$dir/certs";
88
- }
89
-
90
- if (-d $dirlist[0]) {
91
- chdir $dirlist[0];
92
- $openssl="$pwd/$openssl" if (!-x $openssl);
93
- chdir $pwd;
94
- }
95
-
96
- foreach (@dirlist) {
97
- if (-d $_ ) {
98
- if ( -w $_) {
99
- hash_dir($_);
100
- } else {
101
- print "Skipping $_, can't write\n";
102
- $errorcount++;
103
- }
104
- }
105
- }
106
- exit($errorcount);
107
-
108
- sub hash_dir {
109
- my %hashlist;
110
- print "Doing $_[0]\n";
111
- chdir $_[0];
112
- opendir(DIR, ".");
113
- my @flist = sort readdir(DIR);
114
- closedir DIR;
115
- if ( $removelinks ) {
116
- # Delete any existing symbolic links
117
- foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
118
- if (-l $_) {
119
- print "unlink $_" if $verbose;
120
- unlink $_ || warn "Can't unlink $_, $!\n";
121
- }
122
- }
123
- }
124
- FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) {
125
- # Check to see if certificates and/or CRLs present.
126
- my ($cert, $crl) = check_file($fname);
127
- if (!$cert && !$crl) {
128
- print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
129
- next;
130
- }
131
- link_hash_cert($fname) if ($cert);
132
- link_hash_crl($fname) if ($crl);
133
- }
134
- }
135
-
136
- sub check_file {
137
- my ($is_cert, $is_crl) = (0,0);
138
- my $fname = $_[0];
139
- open IN, $fname;
140
- while(<IN>) {
141
- if (/^-----BEGIN (.*)-----/) {
142
- my $hdr = $1;
143
- if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
144
- $is_cert = 1;
145
- last if ($is_crl);
146
- } elsif ($hdr eq "X509 CRL") {
147
- $is_crl = 1;
148
- last if ($is_cert);
149
- }
150
- }
151
- }
152
- close IN;
153
- return ($is_cert, $is_crl);
154
- }
155
-
156
-
157
- # Link a certificate to its subject name hash value, each hash is of
158
- # the form <hash>.<n> where n is an integer. If the hash value already exists
159
- # then we need to up the value of n, unless its a duplicate in which
160
- # case we skip the link. We check for duplicates by comparing the
161
- # certificate fingerprints
162
-
163
- sub link_hash_cert {
164
- my $fname = $_[0];
165
- $fname =~ s/'/'\\''/g;
166
- my ($hash, $fprint) = `"$openssl" x509 $x509hash -fingerprint -noout -in "$fname"`;
167
- chomp $hash;
168
- chomp $fprint;
169
- $fprint =~ s/^.*=//;
170
- $fprint =~ tr/://d;
171
- my $suffix = 0;
172
- # Search for an unused hash filename
173
- while(exists $hashlist{"$hash.$suffix"}) {
174
- # Hash matches: if fingerprint matches its a duplicate cert
175
- if ($hashlist{"$hash.$suffix"} eq $fprint) {
176
- print STDERR "WARNING: Skipping duplicate certificate $fname\n";
177
- return;
178
- }
179
- $suffix++;
180
- }
181
- $hash .= ".$suffix";
182
- if ($symlink_exists) {
183
- print "link $fname -> $hash\n" if $verbose;
184
- symlink $fname, $hash || warn "Can't symlink, $!";
185
- } else {
186
- print "copy $fname -> $hash\n" if $verbose;
187
- if (open($in, "<", $fname)) {
188
- if (open($out,">", $hash)) {
189
- print $out $_ while (<$in>);
190
- close $out;
191
- } else {
192
- warn "can't open $hash for write, $!";
193
- }
194
- close $in;
195
- } else {
196
- warn "can't open $fname for read, $!";
197
- }
198
- }
199
- $hashlist{$hash} = $fprint;
200
- }
201
-
202
- # Same as above except for a CRL. CRL links are of the form <hash>.r<n>
203
-
204
- sub link_hash_crl {
205
- my $fname = $_[0];
206
- $fname =~ s/'/'\\''/g;
207
- my ($hash, $fprint) = `"$openssl" crl $crlhash -fingerprint -noout -in '$fname'`;
208
- chomp $hash;
209
- chomp $fprint;
210
- $fprint =~ s/^.*=//;
211
- $fprint =~ tr/://d;
212
- my $suffix = 0;
213
- # Search for an unused hash filename
214
- while(exists $hashlist{"$hash.r$suffix"}) {
215
- # Hash matches: if fingerprint matches its a duplicate cert
216
- if ($hashlist{"$hash.r$suffix"} eq $fprint) {
217
- print STDERR "WARNING: Skipping duplicate CRL $fname\n";
218
- return;
219
- }
220
- $suffix++;
221
- }
222
- $hash .= ".r$suffix";
223
- if ($symlink_exists) {
224
- print "link $fname -> $hash\n" if $verbose;
225
- symlink $fname, $hash || warn "Can't symlink, $!";
226
- } else {
227
- print "cp $fname -> $hash\n" if $verbose;
228
- system ("cp", $fname, $hash);
229
- warn "Can't copy, $!" if ($? >> 8) != 0;
230
- }
231
- $hashlist{$hash} = $fprint;
232
- }
@@ -1,27 +0,0 @@
1
-
2
- Write-Output "Setting up..."
3
- [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
4
- [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null
5
-
6
- Write-Output "Setting variables..."
7
- $serverName = $env:COMPUTERNAME
8
- $instances = @('SQL2012SP1', 'SQL2014', 'SQL2016')
9
- $smo = 'Microsoft.SqlServer.Management.Smo.'
10
- $wmi = new-object ($smo + 'Wmi.ManagedComputer')
11
-
12
- Write-Output "Configure Instances..."
13
- foreach ($instance in $instances) {
14
- Write-Output "Instance $instance ..."
15
- Write-Output "Enable TCP/IP and port 1433..."
16
- $uri = "ManagedComputer[@Name='$serverName']/ServerInstance[@Name='$instance']/ServerProtocol[@Name='Tcp']"
17
- $tcp = $wmi.GetSmoObject($uri)
18
- $tcp.IsEnabled = $true
19
- foreach ($ipAddress in $Tcp.IPAddresses) {
20
- $ipAddress.IPAddressProperties["TcpDynamicPorts"].Value = ""
21
- $ipAddress.IPAddressProperties["TcpPort"].Value = "1433"
22
- }
23
- $tcp.Alter()
24
- }
25
-
26
- Set-Service SQLBrowser -StartupType Manual
27
- Start-Service SQLBrowser
@@ -1,9 +0,0 @@
1
- CREATE DATABASE [tinytdstest];
2
- GO
3
- CREATE LOGIN [tinytds] WITH PASSWORD = '', CHECK_POLICY = OFF, DEFAULT_DATABASE = [tinytdstest];
4
- GO
5
- USE [tinytdstest];
6
- CREATE USER [tinytds] FOR LOGIN [tinytds];
7
- GO
8
- EXEC sp_addrolemember N'db_owner', N'tinytds';
9
- GO