tiny_tds 2.1.7-x64-mingw32 → 3.0.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +470 -0
  3. data/CHANGELOG.md +10 -0
  4. data/ISSUE_TEMPLATE.md +1 -1
  5. data/README.md +25 -45
  6. data/Rakefile +1 -5
  7. data/VERSION +1 -1
  8. data/docker-compose.yml +2 -2
  9. data/ext/tiny_tds/client.c +8 -15
  10. data/ext/tiny_tds/extconf.rb +1 -2
  11. data/ext/tiny_tds/extconsts.rb +4 -10
  12. data/ext/tiny_tds/result.c +27 -35
  13. data/ext/tiny_tds/tiny_tds_ext.c +4 -1
  14. data/lib/tiny_tds/2.7/tiny_tds.so +0 -0
  15. data/lib/tiny_tds/3.0/tiny_tds.so +0 -0
  16. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/bin/bsqldb.exe +0 -0
  17. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/bin/datacopy.exe +0 -0
  18. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/bin/defncopy.exe +0 -0
  19. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/bin/freebcp.exe +0 -0
  20. data/ports/x64-mingw32/freetds/1.4.23/bin/libct-4.dll +0 -0
  21. data/ports/x64-mingw32/freetds/1.4.23/bin/libsybdb-5.dll +0 -0
  22. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/bin/osql +84 -79
  23. data/ports/x64-mingw32/freetds/1.4.23/bin/tdspool.exe +0 -0
  24. data/ports/x64-mingw32/freetds/1.4.23/bin/tsql.exe +0 -0
  25. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/lib/libct.la +3 -3
  26. data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/lib/libsybdb.la +3 -3
  27. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/bin/iconv.exe +0 -0
  28. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/bin/libcharset-1.dll +0 -0
  29. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/bin/libiconv-2.dll +0 -0
  30. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/lib/libcharset.dll.a +0 -0
  31. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/lib/libcharset.la +3 -3
  32. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/lib/libiconv.dll.a +0 -0
  33. data/ports/x64-mingw32/libiconv/{1.15 → 1.17}/lib/libiconv.la +4 -4
  34. data/ports/x64-mingw32/openssl/{1.1.1s → 3.4.0}/bin/c_rehash +46 -45
  35. data/ports/x64-mingw32/openssl/3.4.0/bin/libcrypto-3-x64.dll +0 -0
  36. data/ports/x64-mingw32/openssl/3.4.0/bin/libssl-3-x64.dll +0 -0
  37. data/ports/x64-mingw32/openssl/3.4.0/bin/openssl.exe +0 -0
  38. data/tasks/ports/freetds.rb +1 -6
  39. data/tasks/ports.rake +2 -2
  40. data/test/bin/install-mssql.ps1 +22 -11
  41. data/test/client_test.rb +2 -5
  42. data/test/gem_test.rb +0 -1
  43. data/test/result_test.rb +99 -192
  44. data/test/schema_test.rb +366 -388
  45. data/test/test_helper.rb +6 -37
  46. data/tiny_tds.gemspec +3 -2
  47. metadata +46 -45
  48. data/.circleci/config.yml +0 -409
  49. data/lib/tiny_tds/2.4/tiny_tds.so +0 -0
  50. data/lib/tiny_tds/2.5/tiny_tds.so +0 -0
  51. data/lib/tiny_tds/2.6/tiny_tds.so +0 -0
  52. data/ports/x64-mingw32/freetds/1.1.24/bin/libct-4.dll +0 -0
  53. data/ports/x64-mingw32/freetds/1.1.24/bin/libsybdb-5.dll +0 -0
  54. data/ports/x64-mingw32/freetds/1.1.24/bin/tdspool.exe +0 -0
  55. data/ports/x64-mingw32/freetds/1.1.24/bin/tsql.exe +0 -0
  56. data/ports/x64-mingw32/libiconv/1.15/lib/charset.alias +0 -4
  57. data/ports/x64-mingw32/openssl/1.1.1s/bin/libcrypto-1_1-x64.dll +0 -0
  58. data/ports/x64-mingw32/openssl/1.1.1s/bin/libssl-1_1-x64.dll +0 -0
  59. data/ports/x64-mingw32/openssl/1.1.1s/bin/openssl.exe +0 -0
  60. data/ports/x64-mingw32/openssl/1.1.1s/lib/libcrypto.a +0 -0
  61. data/ports/x64-mingw32/openssl/1.1.1s/lib/libcrypto.dll.a +0 -0
  62. data/ports/x64-mingw32/openssl/1.1.1s/lib/libssl.a +0 -0
  63. data/ports/x64-mingw32/openssl/1.1.1s/lib/libssl.dll.a +0 -0
  64. data/test/schema/sqlserver_2000.sql +0 -140
  65. data/test/schema/sqlserver_2005.sql +0 -140
  66. data/test/schema/sqlserver_2014.sql +0 -140
  67. data/test/schema/sqlserver_2016.sql +0 -140
  68. data/test/schema/sybase_ase.sql +0 -138
  69. /data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/lib/libct.dll.a +0 -0
  70. /data/ports/x64-mingw32/freetds/{1.1.24 → 1.4.23}/lib/libsybdb.dll.a +0 -0
  71. /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.6
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=' -R/root/project/ports/x64-mingw32/libiconv/1.15/lib -L/root/project/ports/x64-mingw32/libiconv/1.15/lib -L/root/project/ports/x64-mingw32/openssl/1.1.1s/lib -lws2_32 -lssl -lcrypto /root/project/ports/x64-mingw32/libiconv/1.15/lib/libiconv.la'
20
+ dependency_libs=' -L/__w/tiny_tds/tiny_tds/ports/x64-mingw32/libiconv/1.17/lib -lws2_32 -lcrypt32 -L/__w/tiny_tds/tiny_tds/ports/x64-mingw32/openssl/3.4.0/lib64 -lssl -lcrypto /__w/tiny_tds/tiny_tds/ports/x64-mingw32/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='/root/project/ports/x64-mingw32/freetds/1.1.24/lib'
41
+ libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw32/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.6
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=' -R/root/project/ports/x64-mingw32/libiconv/1.15/lib -L/root/project/ports/x64-mingw32/libiconv/1.15/lib -L/root/project/ports/x64-mingw32/openssl/1.1.1s/lib -lws2_32 -lssl -lcrypto /root/project/ports/x64-mingw32/libiconv/1.15/lib/libiconv.la'
20
+ dependency_libs=' -L/__w/tiny_tds/tiny_tds/ports/x64-mingw32/libiconv/1.17/lib -lws2_32 -lcrypt32 -L/__w/tiny_tds/tiny_tds/ports/x64-mingw32/openssl/3.4.0/lib64 -lssl -lcrypto /__w/tiny_tds/tiny_tds/ports/x64-mingw32/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='/root/project/ports/x64-mingw32/freetds/1.1.24/lib'
41
+ libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw32/freetds/1.4.23/lib'
@@ -1,5 +1,5 @@
1
1
  # libcharset.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.6
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=' -L/root/project/ports/x64-mingw32/openssl/1.1.1s/lib'
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='/root/project/ports/x64-mingw32/libiconv/1.15/lib'
41
+ libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw32/libiconv/1.17/lib'
@@ -1,5 +1,5 @@
1
1
  # libiconv.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.6
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=' -L/root/project/ports/x64-mingw32/openssl/1.1.1s/lib'
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=0
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='/root/project/ports/x64-mingw32/libiconv/1.15/lib'
41
+ libdir='/__w/tiny_tds/tiny_tds/ports/x64-mingw32/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 OpenSSL license (the "License"). You may not use
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 = "/root/project/ports/x64-mingw32/openssl/1.1.1s";
16
- my $prefix = "/root/project/ports/x64-mingw32/openssl/1.1.1s";
15
+ my $dir = "/__w/tiny_tds/tiny_tds/ports/x64-mingw32/openssl/3.4.0";
16
+ my $prefix = "/__w/tiny_tds/tiny_tds/ports/x64-mingw32/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
- $x509hash = "-subject_hash_old";
33
- $crlhash = "-hash_old";
32
+ $x509hash = "-subject_hash_old";
33
+ $crlhash = "-hash_old";
34
34
  } elsif ( $flag eq '-h' || $flag eq '-help' ) {
35
- help();
35
+ help();
36
36
  } elsif ( $flag eq '-n' ) {
37
- $removelinks = 0;
37
+ $removelinks = 0;
38
38
  } elsif ( $flag eq '-v' ) {
39
- $verbose++;
39
+ $verbose++;
40
40
  }
41
41
  else {
42
- print STDERR "Usage error; try -h.\n";
43
- exit 1;
42
+ print STDERR "Usage error; try -h.\n";
43
+ exit 1;
44
44
  }
45
45
  }
46
46
 
47
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;
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
- $pwd=Cwd::getcwd();
57
+ $pwd=Cwd::getcwd();
58
58
  } else {
59
- $pwd=`pwd`;
60
- chomp($pwd);
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
- 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
- }
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
- @dirlist = @ARGV;
83
+ @dirlist = @ARGV;
84
84
  } elsif ($ENV{SSL_CERT_DIR}) {
85
- @dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
85
+ @dirlist = split /$path_delim/, $ENV{SSL_CERT_DIR};
86
86
  } else {
87
- $dirlist[0] = "$dir/certs";
87
+ $dirlist[0] = "$dir/certs";
88
88
  }
89
89
 
90
90
  if (-d $dirlist[0]) {
91
- chdir $dirlist[0];
92
- $openssl="$pwd/$openssl" if (!-x $openssl);
93
- chdir $pwd;
91
+ chdir $dirlist[0];
92
+ $openssl="$pwd/$openssl" if (!-x $openssl);
93
+ chdir $pwd;
94
94
  }
95
95
 
96
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
- }
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)|(crt)|(cer)|(crl)$/} @flist) {
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/^.*=//;
@@ -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}/lib"
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 }}/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
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
 
@@ -1,15 +1,27 @@
1
+ param ([int] $Version)
2
+
1
3
  $ProgressPreference = 'SilentlyContinue'
2
4
 
3
- if (-not(Test-path "C:\Downloads"))
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 "https://go.microsoft.com/fwlink/?linkid=829176" -OutFile "C:\Downloads\sqlexpress.exe"
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 'HKLM:\software\microsoft\microsoft sql server\mssql14.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpdynamicports -value ''
22
- set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql14.SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall' -name tcpport -value 1433
23
- set-itemproperty -path 'HKLM:\software\microsoft\microsoft sql server\mssql14.SQLEXPRESS\mssqlserver\' -name LoginMode -value 2
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 -Q "CREATE DATABASE [tinytdstest];"
30
- & sqlcmd -Q "CREATE LOGIN [tinytds] WITH PASSWORD = '', CHECK_POLICY = OFF, DEFAULT_DATABASE = [tinytdstest];"
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 sybase_ase?
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 sybase_ase? ? 4002 : 18456, e.db_error_number
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