Skip to content

Commit 1ebeae6

Browse files
committed
Actually drop support for FreeTDS < 1.0
`DBSETUTF16` has only been introduced with v1.0.
1 parent 75c2c69 commit 1ebeae6

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* Drop support for Ruby < 2.7
44
* Drop support for SQL Server < 2017
5-
* Drop support for FreeTDS < 0.95
5+
* Drop support for FreeTDS < 1.0
66

77
## 2.1.7
88
* Add Ruby 3.3 to the cross compile list

ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* On Windows? If so, do you need devkit for your ruby install?
44
* Using Ubuntu? If so, you may have forgotten to install FreeTDS first.
5-
* Are you using FreeTDS 0.95.80 or later? Check `$ tsql -C` to find out.
5+
* Are you using FreeTDS 1.0.0 or later? Check `$ tsql -C` to find out.
66
* If not, please update then uninstall the TinyTDS gem and re-install it.
77
* Have you made sure to [enable SQL Server authentication](http://bit.ly/1Kw3set)?
88
* Doing work with threads and the raw client? Use the ConnectionPool gem?

ext/tiny_tds/extconf.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def do_help
8484
end
8585

8686
unless have_dependencies
87-
abort 'Failed! Do you have FreeTDS 0.95.80 or higher installed?'
87+
abort 'Failed! Do you have FreeTDS 1.0.0 or higher installed?'
8888
end
8989

9090
create_makefile('tiny_tds/tiny_tds')

ext/tiny_tds/extconsts.rb

+2-8
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@
55
OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '1.1.1s'
66
OPENSSL_SOURCE_URI = "https://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz"
77

8-
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "1.1.24"
9-
FREETDS_VERSION_INFO = Hash.new { |h,k|
10-
h[k] = {files: "http://www.freetds.org/files/stable/freetds-#{k}.tar.bz2"}
11-
}
12-
FREETDS_VERSION_INFO['1.00'] = {files: 'http://www.freetds.org/files/stable/freetds-1.00.tar.bz2'}
13-
FREETDS_VERSION_INFO['0.99'] = {files: 'http://www.freetds.org/files/current/freetds-dev.0.99.678.tar.gz'}
14-
FREETDS_VERSION_INFO['0.95'] = {files: 'http://www.freetds.org/files/stable/freetds-0.95.92.tar.gz'}
15-
FREETDS_SOURCE_URI = FREETDS_VERSION_INFO[FREETDS_VERSION][:files]
8+
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || '1.1.24'
9+
FREETDS_SOURCE_URI = "http://www.freetds.org/files/stable/freetds-#{FREETDS_VERSION}.tar.bz2"

0 commit comments

Comments
 (0)