github FreeTDS/freetds v1.4.10
FreeTDS 1.4.10 minor release

latest releases: v1.4.22, v1.4.21, v1.4.20...
8 months ago

Added commits

Do not try to use pthread_cond_timedwait_relative_np on newer Android

API was deprecated, do not use (still available on Apple).
Rename USE_CLOCK_IN_COND to USE_CLOCK_GETTIME_IN_COND to make more clear.
Put check for pthread_cond_timedwait_relative_np in a single place defining a new USE_COND_TIMEDWAIT_RELATIVE if we can use it.
Declare tv variable near gettimeofday to reduce conditional compilation.

Get Windows code page using Windows API

Instead of using setlocale call use GetLocaleInfoA.
This fixes getting Windows code page.
setlocale should return the code page number as first item but it depends on too many settings and sometimes the string does not start with the code page number.
Updated ODBC test to avoid not convertible character; note that now the behaviour is more coherent to Windows driver for this test.

odbc: Return better error for invalid character set

Do not return memory error which is pretty misleading.

tds: Set control method for final OpenSSL BIO

OpenSSL sometimes calls this callback failing if not present.
This fixes #513.

odbc: Fix getting SQL_ATTR_METADATA_ID attribute

Returned wrong field due to typo.

tds: Fix possible issue with 32 bit machines using BCP

The -2 constant should be signed extended to 64 bit and passed to tds_put_int8. This potentially does not happen on 32 bit as the ?: operator would return a size_t (unsigned 32 bit on 32 bit systems).
Force the type to get the correct value.

odbc: Fix type setting

The code was falling through the cases potentially setting wrong types.

tds: Fix conversion from NUMERIC -0 number to integers

The weird number encoding failed to be converted to integers and was detected as overflow.

tls: Fix certificate hostname check for OpenSSL

Update Autoconf to 2.71

Add some compatibility for MacOS.

Don't miss a new freetds release

NewReleases is sending notifications on new releases.