tiny_tds 2.1.7-x64-mingw-ucrt → 3.0.0-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +470 -0
- data/CHANGELOG.md +10 -0
- data/ISSUE_TEMPLATE.md +1 -1
- data/README.md +25 -45
- data/Rakefile +1 -5
- data/VERSION +1 -1
- data/docker-compose.yml +2 -2
- data/ext/tiny_tds/client.c +8 -15
- data/ext/tiny_tds/extconf.rb +1 -2
- data/ext/tiny_tds/extconsts.rb +4 -10
- data/ext/tiny_tds/result.c +27 -35
- data/ext/tiny_tds/tiny_tds_ext.c +4 -1
- data/lib/tiny_tds/3.1/tiny_tds.so +0 -0
- data/lib/tiny_tds/3.2/tiny_tds.so +0 -0
- data/lib/tiny_tds/3.3/tiny_tds.so +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/bin/bsqldb.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/bin/datacopy.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/bin/defncopy.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/bin/freebcp.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.4.23/bin/libct-4.dll +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.4.23/bin/libsybdb-5.dll +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/bin/osql +84 -79
- data/ports/x64-mingw-ucrt/freetds/1.4.23/bin/tdspool.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.4.23/bin/tsql.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/lib/libct.la +3 -3
- data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/lib/libsybdb.la +3 -3
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/bin/iconv.exe +0 -0
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/bin/libcharset-1.dll +0 -0
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/bin/libiconv-2.dll +0 -0
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/lib/libcharset.dll.a +0 -0
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/lib/libcharset.la +3 -3
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/lib/libiconv.dll.a +0 -0
- data/ports/x64-mingw-ucrt/libiconv/{1.15 → 1.17}/lib/libiconv.la +4 -4
- data/ports/x64-mingw-ucrt/openssl/{1.1.1s → 3.4.0}/bin/c_rehash +46 -45
- data/ports/x64-mingw-ucrt/openssl/3.4.0/bin/libcrypto-3-x64.dll +0 -0
- data/ports/x64-mingw-ucrt/openssl/3.4.0/bin/libssl-3-x64.dll +0 -0
- data/ports/x64-mingw-ucrt/openssl/3.4.0/bin/openssl.exe +0 -0
- data/tasks/ports/freetds.rb +1 -6
- data/tasks/ports.rake +2 -2
- data/test/bin/install-mssql.ps1 +22 -11
- data/test/client_test.rb +2 -5
- data/test/gem_test.rb +0 -1
- data/test/result_test.rb +99 -192
- data/test/schema_test.rb +366 -388
- data/test/test_helper.rb +6 -37
- data/tiny_tds.gemspec +3 -2
- metadata +45 -41
- data/.circleci/config.yml +0 -409
- data/ports/x64-mingw-ucrt/freetds/1.1.24/bin/libct-4.dll +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.1.24/bin/libsybdb-5.dll +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.1.24/bin/tdspool.exe +0 -0
- data/ports/x64-mingw-ucrt/freetds/1.1.24/bin/tsql.exe +0 -0
- data/ports/x64-mingw-ucrt/libiconv/1.15/lib/charset.alias +0 -4
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/bin/libcrypto-1_1-x64.dll +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/bin/libssl-1_1-x64.dll +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/bin/openssl.exe +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/lib/libcrypto.a +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/lib/libcrypto.dll.a +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/lib/libssl.a +0 -0
- data/ports/x64-mingw-ucrt/openssl/1.1.1s/lib/libssl.dll.a +0 -0
- data/test/schema/sqlserver_2000.sql +0 -140
- data/test/schema/sqlserver_2005.sql +0 -140
- data/test/schema/sqlserver_2014.sql +0 -140
- data/test/schema/sqlserver_2016.sql +0 -140
- data/test/schema/sybase_ase.sql +0 -138
- /data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/lib/libct.dll.a +0 -0
- /data/ports/x64-mingw-ucrt/freetds/{1.1.24 → 1.4.23}/lib/libsybdb.dll.a +0 -0
- /data/test/schema/{sqlserver_2008.sql → sqlserver_2017.sql} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
# libct.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4.
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.7
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library=''
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -
|
20
|
+
dependency_libs=' -L/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib -lws2_32 -lcrypt32 -L/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/openssl/3.4.0/lib64 -lssl -lcrypto /__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib/libiconv.la'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/
|
41
|
+
libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/freetds/1.4.23/lib'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# libsybdb.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4.
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.7
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library=''
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -
|
20
|
+
dependency_libs=' -L/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib -lws2_32 -lcrypt32 -L/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/openssl/3.4.0/lib64 -lssl -lcrypto /__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib/libiconv.la'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/
|
41
|
+
libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/freetds/1.4.23/lib'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# libcharset.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4.
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.7
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library=''
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs='
|
20
|
+
dependency_libs=''
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/
|
41
|
+
libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib'
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# libiconv.la - a libtool library file
|
2
|
-
# Generated by libtool (GNU libtool) 2.4.
|
2
|
+
# Generated by libtool (GNU libtool) 2.4.7
|
3
3
|
#
|
4
4
|
# Please DO NOT delete this file!
|
5
5
|
# It is necessary for linking the library.
|
@@ -17,7 +17,7 @@ old_library=''
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs='
|
20
|
+
dependency_libs=''
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -25,7 +25,7 @@ weak_library_names=''
|
|
25
25
|
# Version information for libiconv.
|
26
26
|
current=8
|
27
27
|
age=6
|
28
|
-
revision=
|
28
|
+
revision=1
|
29
29
|
|
30
30
|
# Is this an already installed library?
|
31
31
|
installed=yes
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/
|
41
|
+
libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/libiconv/1.17/lib'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
# Generated by Makefile from tools/c_rehash.in
|
5
5
|
# Copyright 1999-2022 The OpenSSL Project Authors. All Rights Reserved.
|
6
6
|
#
|
7
|
-
# Licensed under the
|
7
|
+
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
8
8
|
# this file except in compliance with the License. You can obtain a copy
|
9
9
|
# in the file LICENSE in the source distribution or at
|
10
10
|
# https://www.openssl.org/source/license.html
|
@@ -12,8 +12,8 @@
|
|
12
12
|
# Perl c_rehash script, scan all files in a directory
|
13
13
|
# and add symbolic links to their hash values.
|
14
14
|
|
15
|
-
my $dir = "/
|
16
|
-
my $prefix = "/
|
15
|
+
my $dir = "/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/openssl/3.4.0";
|
16
|
+
my $prefix = "/__w/tiny_tds/tiny_tds/ports/x64-mingw-ucrt/openssl/3.4.0";
|
17
17
|
|
18
18
|
my $errorcount = 0;
|
19
19
|
my $openssl = $ENV{OPENSSL} || "openssl";
|
@@ -29,35 +29,35 @@ while ( $ARGV[0] =~ /^-/ ) {
|
|
29
29
|
my $flag = shift @ARGV;
|
30
30
|
last if ( $flag eq '--');
|
31
31
|
if ( $flag eq '-old') {
|
32
|
-
|
33
|
-
|
32
|
+
$x509hash = "-subject_hash_old";
|
33
|
+
$crlhash = "-hash_old";
|
34
34
|
} elsif ( $flag eq '-h' || $flag eq '-help' ) {
|
35
|
-
|
35
|
+
help();
|
36
36
|
} elsif ( $flag eq '-n' ) {
|
37
|
-
|
37
|
+
$removelinks = 0;
|
38
38
|
} elsif ( $flag eq '-v' ) {
|
39
|
-
|
39
|
+
$verbose++;
|
40
40
|
}
|
41
41
|
else {
|
42
|
-
|
43
|
-
|
42
|
+
print STDERR "Usage error; try -h.\n";
|
43
|
+
exit 1;
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
47
|
sub help {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
53
|
}
|
54
54
|
|
55
55
|
eval "require Cwd";
|
56
56
|
if (defined(&Cwd::getcwd)) {
|
57
|
-
|
57
|
+
$pwd=Cwd::getcwd();
|
58
58
|
} else {
|
59
|
-
|
60
|
-
|
59
|
+
$pwd=`pwd`;
|
60
|
+
chomp($pwd);
|
61
61
|
}
|
62
62
|
|
63
63
|
# DOS/Win32 or Unix delimiter? Prefix our installdir, then search.
|
@@ -65,43 +65,43 @@ my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':';
|
|
65
65
|
$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : "");
|
66
66
|
|
67
67
|
if (! -x $openssl) {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
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
80
|
}
|
81
81
|
|
82
82
|
if (@ARGV) {
|
83
|
-
|
83
|
+
@dirlist = @ARGV;
|
84
84
|
} elsif ($ENV{SSL_CERT_DIR}) {
|
85
|
-
|
85
|
+
@dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
|
86
86
|
} else {
|
87
|
-
|
87
|
+
$dirlist[0] = "$dir/certs";
|
88
88
|
}
|
89
89
|
|
90
90
|
if (-d $dirlist[0]) {
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
chdir $dirlist[0];
|
92
|
+
$openssl="$pwd/$openssl" if (!-x $openssl);
|
93
|
+
chdir $pwd;
|
94
94
|
}
|
95
95
|
|
96
96
|
foreach (@dirlist) {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
97
|
+
if (-d $_ ) {
|
98
|
+
if ( -w $_) {
|
99
|
+
hash_dir($_);
|
100
|
+
} else {
|
101
|
+
print "Skipping $_, can't write\n";
|
102
|
+
$errorcount++;
|
103
|
+
}
|
104
|
+
}
|
105
105
|
}
|
106
106
|
exit($errorcount);
|
107
107
|
|
@@ -144,7 +144,7 @@ sub hash_dir {
|
|
144
144
|
}
|
145
145
|
}
|
146
146
|
}
|
147
|
-
FILE: foreach $fname (grep {/\.(pem
|
147
|
+
FILE: foreach $fname (grep {/\.(pem|crt|cer|crl)$/} @flist) {
|
148
148
|
# Check to see if certificates and/or CRLs present.
|
149
149
|
my ($cert, $crl) = check_file($fname);
|
150
150
|
if (!$cert && !$crl) {
|
@@ -223,6 +223,7 @@ sub link_hash {
|
|
223
223
|
"-fingerprint", "-noout",
|
224
224
|
"-in", $fname);
|
225
225
|
chomp $hash;
|
226
|
+
$hash =~ s/^.*=// if !$is_cert;
|
226
227
|
chomp $fprint;
|
227
228
|
return if !$hash;
|
228
229
|
$fprint =~ s/^.*=//;
|
Binary file
|
Binary file
|
Binary file
|
data/tasks/ports/freetds.rb
CHANGED
@@ -15,12 +15,7 @@ module Ports
|
|
15
15
|
|
16
16
|
opts << '--with-pic'
|
17
17
|
opts << '--disable-odbc'
|
18
|
-
|
19
|
-
if version =~ /0\.91/
|
20
|
-
opts << '--with-tdsver=7.1'
|
21
|
-
else
|
22
|
-
opts << '--with-tdsver=7.3'
|
23
|
-
end
|
18
|
+
opts << '--with-tdsver=7.3'
|
24
19
|
|
25
20
|
if windows?
|
26
21
|
opts << '--sysconfdir=C:/Sites'
|
data/tasks/ports.rake
CHANGED
@@ -48,10 +48,10 @@ namespace :ports do
|
|
48
48
|
if libraries_to_compile[:openssl]
|
49
49
|
# freetds doesn't have an option that will provide an rpath
|
50
50
|
# so we do it manually
|
51
|
-
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/
|
51
|
+
ENV['OPENSSL_CFLAGS'] = "-Wl,-rpath -Wl,#{libraries_to_compile[:openssl].path}/lib64"
|
52
52
|
# Add the pkgconfig file with MSYS2'ish path, to prefer our ports build
|
53
53
|
# over MSYS2 system OpenSSL.
|
54
|
-
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/
|
54
|
+
ENV['PKG_CONFIG_PATH'] = "#{libraries_to_compile[:openssl].path.gsub(/^(\w):/i) { "/" + $1.downcase }}/lib64/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
|
55
55
|
libraries_to_compile[:freetds].configure_options << "--with-openssl=#{libraries_to_compile[:openssl].path}"
|
56
56
|
end
|
57
57
|
|
data/test/bin/install-mssql.ps1
CHANGED
@@ -1,15 +1,27 @@
|
|
1
|
+
param ([int] $Version)
|
2
|
+
|
1
3
|
$ProgressPreference = 'SilentlyContinue'
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
+
$DownloadLinkTable = @{
|
6
|
+
2017 = "https://go.microsoft.com/fwlink/?linkid=829176";
|
7
|
+
2019 = "https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPR_x64_ENU.exe";
|
8
|
+
2022 = "https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLEXPR_x64_ENU.exe";
|
9
|
+
}
|
10
|
+
|
11
|
+
$MajorVersionTable = @{
|
12
|
+
2017 = 14;
|
13
|
+
2019 = 15;
|
14
|
+
2022 = 16;
|
15
|
+
}
|
16
|
+
|
17
|
+
if (-not(Test-path "C:\Downloads")) {
|
5
18
|
mkdir "C:\Downloads"
|
6
19
|
}
|
7
20
|
|
8
21
|
$sqlInstallationFile = "C:\Downloads\sqlexpress.exe"
|
9
|
-
if (-not(Test-path $sqlInstallationFile -PathType leaf))
|
10
|
-
{
|
22
|
+
if (-not(Test-path $sqlInstallationFile -PathType leaf)) {
|
11
23
|
Write-Host "Downloading SQL Express ..."
|
12
|
-
Invoke-WebRequest -Uri
|
24
|
+
Invoke-WebRequest -Uri $DownloadLinkTable[$Version] -OutFile "C:\Downloads\sqlexpress.exe"
|
13
25
|
}
|
14
26
|
|
15
27
|
Write-Host "Installing SQL Express ..."
|
@@ -18,14 +30,13 @@ C:\Downloads\setup\setup.exe /q /ACTION=Install /INSTANCENAME=SQLEXPRESS /FEATUR
|
|
18
30
|
|
19
31
|
Write-Host "Configuring SQL Express ..."
|
20
32
|
stop-service MSSQL`$SQLEXPRESS
|
21
|
-
set-itemproperty -path
|
22
|
-
set-itemproperty -path
|
23
|
-
set-itemproperty -path
|
33
|
+
set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall" -name tcpdynamicports -value ''
|
34
|
+
set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall" -name tcpport -value 1433
|
35
|
+
set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\" -name LoginMode -value 2
|
24
36
|
|
25
37
|
Write-Host "Starting SQL Express ..."
|
26
38
|
start-service MSSQL`$SQLEXPRESS
|
27
39
|
|
28
40
|
Write-Host "Configuring MSSQL for TinyTDS ..."
|
29
|
-
& sqlcmd -
|
30
|
-
& sqlcmd -
|
31
|
-
& sqlcmd -Q "USE [tinytdstest]; CREATE USER [tinytds] FOR LOGIN [tinytds]; EXEC sp_addrolemember N'db_owner', N'tinytds';"
|
41
|
+
& sqlcmd -i './test/sql/db-create.sql'
|
42
|
+
& sqlcmd -i './test/sql/db-login.sql'
|
data/test/client_test.rb
CHANGED
@@ -24,10 +24,7 @@ class ClientTest < TinyTds::TestCase
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'has getters for the tds version information (brittle since conf takes precedence)' do
|
27
|
-
if
|
28
|
-
assert_equal 7, @client.tds_version
|
29
|
-
assert_equal 'DBTDS_5_0 - 5.0 SQL Server', @client.tds_version_info
|
30
|
-
elsif @client.tds_73?
|
27
|
+
if @client.tds_73?
|
31
28
|
assert_equal 11, @client.tds_version
|
32
29
|
assert_equal 'DBTDS_7_3 - Microsoft SQL Server 2008', @client.tds_version_info
|
33
30
|
else
|
@@ -199,7 +196,7 @@ class ClientTest < TinyTds::TestCase
|
|
199
196
|
options = connection_options :username => 'willnotwork'
|
200
197
|
action = lambda { new_connection(options) }
|
201
198
|
assert_raise_tinytds_error(action) do |e|
|
202
|
-
assert_equal
|
199
|
+
assert_equal 18456, e.db_error_number
|
203
200
|
assert_equal 14, e.severity
|
204
201
|
assert_match %r{login failed}i, e.message, 'ignore if non-english test run'
|
205
202
|
end
|
data/test/gem_test.rb
CHANGED
@@ -158,7 +158,6 @@ class GemTest < MiniTest::Spec
|
|
158
158
|
{
|
159
159
|
'x64-mingw-ucrt' => 'x64-mingw-ucrt',
|
160
160
|
'x64-mingw32' => 'x64-mingw32',
|
161
|
-
'x86-mingw32' => 'x86-mingw32',
|
162
161
|
'x86_64-linux' => 'x86_64-linux',
|
163
162
|
}.each do |host,expected|
|
164
163
|
describe "on a #{host} architecture" do
|