Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Nov 25 07:47:42 2020 +0000

    Change BCPCOLDATA::is_null to bool

    Just style change

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 24 07:48:54 2020 +0000

    dblib: Use union to read prefix

    Potentially save some bytes, some code and more coherent with
    code writing the prefix.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 24 07:34:06 2020 +0000

    dblib: Minor style changes

    Move declaration to inner blocks.
    Change data_is_null from int to bool.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 21 17:38:57 2020 +0000

    Avoid sending invalid data to Sybase during bulk insert

    This reverts most of commit e1a1216a07246d6abe7a42bf71e369e4cf47a0fd

        allow sending NULL (no pun intended) even if column is not NULL.

    This fix issue #362, reported by Bellam R who proposed a similar
    change.
    This change remove most conditional USING_SYBEBCNN compilation
    implementing how APIs should work.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 21 13:13:42 2020 +0000

    dblib: Check long queries passed to bcp_init

    They should not fail.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 21 13:12:47 2020 +0000

    odbc: Use CHKFetch macro instead of SQLFetch

    Check for SQLFetch results.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 21 13:12:12 2020 +0000

    dblib: Move "failed" variable into main

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 21 06:57:24 2020 +0000

    dblib: Do not limit database query to 92 character for Sybase

    "tblname" is used as a query if direction is DB_QUERYOUT.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 14 07:44:25 2020 +0000

    dblib: Small style change

    Avoid explicit bool transformation like "condition ? true : false",
    just use "condition".

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 14 07:37:41 2020 +0000

    dblib: Minor style change in dbpivot.c

    Add space after "switch".

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Nov 13 07:44:14 2020 +0000

    Fix compilation for OpenVMS

    src/tds/strftime.c does not exist, it was added when
    src/tds/unittests/strftime.c test was added.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Nov 13 07:23:59 2020 +0000

    Remove some conversion warnings

    You can see these ones compiling with -Wc++-compat.
    Really minor.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 1 19:07:35 2020 +0000

    tds: Add version number to some internal function

    Make clear they are for TDS 5.0.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 1 19:06:01 2020 +0000

    tds: Split tds_bcp_send_record function

    Add tds7_send_record and tds5_send_record separating Microsoft
    and Sybase code.
    The bulk data is pretty different between the two versions.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 1 19:03:57 2020 +0000

    tds: Check minimal protocol version in tds_bcp_start

    Check again protocol version, handle case reconnecting to
    different server.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 16:15:13 2020 +0100

    ctlib: Use sizeof instead of constant

    Just style update.
    Allow to easily change the size of "line" if needed.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 15:29:35 2020 +0100

    dblib: Use strlcpy instead of strcpy, just for safety

    Overflow should not happen but doesn't hurt to avoid it.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 15:29:15 2020 +0100

    dblib: Avoid goto and label + variable move

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 15:28:18 2020 +0100

    dblib: Make free_file_registered bool and static

    Just style change.
    bool is more readable.
    It's not used outside the module so make it clear with static.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Apr 4 14:25:08 2018 +0100

    Add crypt32 library for Windows

    Required in some environments.
    Used in CMake project files too.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 1 12:36:14 2020 +0000

    ctlib: Check minimal protocol version for bulk support

    At least version 5.0 is required.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 30 15:55:01 2020 +0000

    Really minor style update

    Similar check for GCC version.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 30 15:54:11 2020 +0000

    Check correctly for __builtin_bswap16 and __builtin_bswap32

    __builtin_bswap16 was introduced in GCC 4.8.
    __builtin_bswap32 was introduced in GCC 4.3.

    Attempt to fix an issue compiling with GCC 4.2.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 29 16:09:18 2020 +0000

    odbc: Add more test to data

    Check for Sybase unsigned types

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 29 16:12:32 2020 +0000

    tds: Fix bulk insert for big endian machines

    Now that network is always little endian the row data must be also
    little endian.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 29 16:31:18 2020 +0000

    tds: Swap correctly Sybase unsigned types for bit endian machines

    Fix getting these types from server.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 29 16:31:56 2020 +0000

    dblib: Minor style fix

    Just space fixes

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 29 13:48:59 2020 +0000

    tds: Fix Sybse UNI(VAR)CHAR type for big endian machines

    Network endian is now always little endian.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Oct 28 20:03:33 2020 +0000

    tds: Fix inserting bulk data into Sybase from big endian platforms

    The encoding for client is always little endian, even for big endian
    machines.
    Reported by Bellam R.

Author: Sergey Satskiy <satskyse@ncbi.nlm.nih.gov>
Date:   Mon Jun 4 11:13:37 2018 -0400

    login.c (tds_connect): Skip non-TCP tries to connect to a host:port

    Not clear to me (Frediano) on which platforms/settings this
    happens but it does not hurt.

Author: Bellam R <bellamr100@gmail.com>
Date:   Fri Oct 9 16:57:09 2020 +0100

    Provide compatibility with default Sybase date time format

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Mon Oct 22 15:51:29 2018 -0400

    tds_generic_get_info: Report a max size of 2**31-1 for VARBINARY(MAX).

    Leave [N]VARCHAR(MAX) at 2**30-1 here; subsequent Unicode-related
    adjustments that don't apply to VARBINARY(MAX) will result in
    ultimately returning the higher limit for all of these types anyway.

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Mon Jun 4 11:13:37 2018 -0400

    odbc: Declare that odbc_fatal never returns

    odbc/unittests/parser.h: Declare that odbc_fatal never returns so
    that scan-build will recognize the existing sanity checks it enforces.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Oct 24 15:42:04 2020 +0100

    Compile with OpenSSL 1.1.1 under AppVeyor CI

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Oct 24 11:27:15 2020 +0100

    Add missing cmake include path

    This fixes "Fix CMake dependencies" commit not adding binary
    directory to include paths.
    If system iconv was not present iconv.c failed to compile.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 14:45:14 2020 +0100

    Fix compilation with old MSVC environment

    EINVAL and ENOMEM are defined including errno.h.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 22 13:49:06 2020 +0100

    Fix CMake dependencies

    Do not build generated files in source directories.
    Add add_custom_target to add explicit dependencies between
    generated files and other targets.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 11:20:25 2020 +0100

    Reuse replacement (un)setenv

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 11:15:41 2020 +0100

    Add replacement functions for (un)setenv

    Windows do not have such functions

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 09:45:30 2020 +0100

    Fix compile error for portconf

    Due to recent change for Travis CI

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 08:46:23 2020 +0100

    Fix portconf failure on Travis CI

    Fix some possible environment overrides that can affect the
    result of portconf test.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 23 08:53:33 2020 +0100

    Remove PPA setting on Travis CI

    No more necessary, automake package is recent enough

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 22 15:47:09 2020 +0100

    Make "make check" verbose for Travis CI

    Allow to see test outputs.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Oct 22 15:11:27 2020 +0100

    Add missing package to Travis CI

Author: Marc Abramowitz <abramowi@adobe.com>
Date:   Wed Oct 21 17:26:23 2020 -0700

    .travis.yml: Replace email with Freddy's

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Oct 11 12:40:24 2020 +0100

    dblib: Make bcp test more Sybase compatible

    As test is using decimal/numeric types on Sybase library a call
    to dbsetversion is needed.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Oct 11 11:15:21 2020 +0100

    dblib: Check bcp_collen behaviour with Sybase library

    There's no NULL check, remove commented out code replacing with
    a proper comment.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Oct 11 10:13:30 2020 +0100

    dblib: Use stderr to output errors on bcp test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 9 14:49:40 2020 +0100

    Unify date format strings

    Now that tds_strtime supports always %e and %l we can simplify
    the constant strings assuming these formats are always supported.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 9 11:25:21 2020 +0100

    tds: Handle tds_strftime %z inside general loop

    Avoid to scan the string twice.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 9 11:24:30 2020 +0100

    tds: Add strftime test

    Test tds_strftime.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Oct 9 10:00:46 2020 +0100

    tds: Handle %e and %l in tds_strftime

    Not all systems support these formats, handle directly in
    tds_strftime to allows to be used in all systems.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Oct 4 16:55:40 2020 +0100

    odbc: Rename t0004 test to moreresults

    More meaningful name.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Oct 4 16:52:06 2020 +0100

    odbc: Use bool for t0004 test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 29 06:52:24 2020 +0100

    dblib: Add KEEP_NULLS to BCP hints

    This hint was added in MSSQL 2008.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 17:35:25 2020 +0100

    Update some documentation post 1.2 release

    Make clean master is the development branch

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 15:27:46 2020 +0100

    tests: Change some spaces and indentations

    Remove spaces at the end of lines.
    Update some declaration indentation.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 28 11:21:53 2020 +0100

    Capitalise xml and html in README.md

    Both are acronyms.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 19:44:47 2020 +0100

    ci: Add support for AppVeyor Visual Studio 2019

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Feb 28 17:06:03 2019 +0000

    tds: Add feature extension allowing MSSQL 2019 UTF-8 columns

    In order to tell MSSQL 2019 to return columns with UTF-8 collation
    (like Latin1_General_100_CI_AS_SC_UTF8) you need to pass feature
    extensions.
    Pass and support extension to handle UTF-8 collation.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 15:32:30 2020 +0100

    dblib: Fix rpc test for UTF-8 databases

    In rpc.sql a CHAR(247) is not working for UTF-8, use CHAR(123)
    which will output a ASCII character, compatible with all encodings.
    Do not use text for sp_executesql call, server does not like
    the combination of TEXT and UTF-8 encodings giving error.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 13:20:48 2020 +0100

    odbc: Fix compatibility with genparams test and UTF-8

    This is in preparation for adding UTF-8 support.
    When the test database is in UTF-8 the test is failing due to
    some query failing.
    Force a collation not UTF-8 even using a UTF-8 database.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 11:56:56 2020 +0100

    odbc: Fix compatibility with getdata test and UTF-8

    This is in preparation for adding UTF-8 support.
    When the test database is in UTF-8 the test is failing due to
    some query failing.
    Force a collation not UTF-8 even using a UTF-8 database.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 11:26:46 2020 +0100

    odbc: Make qn test work correctly even if the database is not "tempdb"

    Test assumed that the database was tempdb.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 27 11:22:40 2020 +0100

    odbc: Add utility to format a string in tests

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 16 18:49:33 2020 +0100

    Make tds_strndup more similar to strndup

    Stop at terminator if passed length is bigger than the string length.

Author: Craig A. Berry <craigberry@mac.com>
Date:   Tue Sep 15 16:10:45 2020 -0500

    Fix VMS build for OpenSSL 1.1.x

    It needed some configuration tinkering to recognize the pieces
    correctly.

Author: Kleber Tarcísio <klebertarcisio@yahoo.com.br>
Date:   Mon Sep 7 22:48:59 2020 -0300

    Fix compilation error

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 4 21:40:42 2020 +0100

    ctlib: Add a test for SQL_VARIANT type

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Sep 3 14:50:08 2020 +0100

    build: Compile gssapi.c always

    Allows Sybase kerberos connections under Windows using GSSAPI.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 1 09:58:27 2020 +0100

    replacements: Optimize tds_strlcpy a bit

    Call memcpy just once helping compiler to reuse some code.
    Also the simple minimum computation can be computed on some
    architectures using no flow control instructions.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 31 20:45:40 2020 +0100

    odbc: Minor genparams test improvements

    Add a comment to TestInput, not easy to understand parameters meaning.
    Reduce some long lines building a query, all versions start the
    same way.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 31 20:47:14 2020 +0100

    odbc: Fix style in test

    Remove spaces between structure and field.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 31 20:46:27 2020 +0100

    odbc: Fix typo in test comment

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 31 09:36:27 2020 +0100

    tds: Add some comments on collation

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 31 07:34:04 2020 +0100

    ci: Try to download gperf executable from another URL

    Make builds more reliable adding another generic link to
    Sourceforge file.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Aug 30 12:37:42 2020 +0100

    ci: Try to extract needed downloaded file after each download

    This prevent error is file is successfully downloaded but wrong.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Aug 30 10:43:36 2020 +0100

    tds: Allows SSPI to be very big

    It never happened, but TDS supports SSPI packets longer than 64K
    under TDS 7.2+

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Aug 22 17:17:36 2020 +0100

    ctlib: Replace ptr == NULL with !ptr

    Just style change, normalise this check.
    Some other minor style changes too (indentation and blocks).

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Aug 22 17:16:22 2020 +0100

    ctlib: Remove useless declaration

    _ctclient_msg and _ct_bind_data are already declared in ctlib.h

Author: Kleber <klebertarcisio@yahoo.com.br>
Date:   Thu Aug 20 17:15:35 2020 -0300

    check if memory is allocated

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Jul 30 11:29:51 2020 +0100

    tds: Support ASA unicode types

    ASA support unicode but instead of using UTF-16 encoding uses
    UTF-8.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Jul 30 11:16:06 2020 +0100

    tds: Rename sybase_utf to sybase_utf16

    Preparation to fix ASA

Author: Ivan alden <ialden@perten.com>
Date:   Mon Aug 10 16:04:17 2020 +1000

    Added default 10 seconds for timeout used in unixODBC configuration only

Author: Ivan alden <ialden@perten.com>
Date:   Mon Aug 10 15:08:06 2020 +1000

    Added ODBC timeout parameter for odbc.ini and connection string

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Aug 8 14:13:15 2020 +0100

    odbc: Remove semicolons from ODBC_ALL_API macro

    Not needed, they generate useless empty statements in the code.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 3 11:48:50 2020 +0100

    dblib: Reset connection_list_size_represented on dbexit

    The field should count the current limit in connection_list,
    we released the array so for coherence reset the counter too.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 3 11:46:25 2020 +0100

    odbc: Fix log message

    Wrong function name was printed.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Jul 29 17:03:43 2020 +0100

    tds: Make determine_adjusted_size static

    Only used in src/tds/token.c

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Jul 22 09:58:27 2020 +0100

    misc: Change output directory for MSSQL 2000

    Just for numbering so to have from test1 to test4

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Nov 29 17:34:54 2019 +0000

    odbc: Reuse Bjoern function to convert UTF-8 strings

    Improve UTF-8 validity without performance penalties.
    Old code does not check bytes after first and other conditions.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jul 6 16:54:51 2020 +0100

    tds: Optimization for char encoding

    Detect same charset and avoid using larger buffer to store
    result of conversion.
    This also affects the column length on some libraries which do
    not differ between DDL and byte length.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Jul 7 07:54:37 2020 +0100

    dblib: Allows to pass 0 as type for bcp_bind

    0 value as type means no conversion performed.
    This is correctly handled but it was rejected when more checks
    were introduced.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Jul 7 07:31:38 2020 +0100

    dblib: Add missing parameters to DBSETLSERVERPRINCIPAL macro

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jul 3 17:26:45 2020 +0100

    start development release

Merge: be39110f 92ebbf45
Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jul 3 17:53:11 2020 +0100

    Merge branch 'Branch-1_2'

    Pull updates after the fork

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon May 4 05:48:55 2020 +0100

    pool: Narrow "err" variable scope

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon May 4 05:48:23 2020 +0100

    Remove some "//" style comments

    Some compilers still complain about them.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jun 19 13:28:16 2020 +0100

    string_to_datetime: reject garbled strings

    string_to_datetime only checked if a string was garbled within the
    loop, not after it. This resulted in it incorrectly converting invalid
    strings of only one token, i.e. without a comma, to 1900-01-01 00:00:00.

    Original patch and report from Mark Harmstone <mark@harmstone.com>
    in https://github.com/FreeTDS/freetds/pull/348.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jun 21 08:14:58 2020 +0100

    tds: Remove support for obsoleted TDS version numbers

    4.6 was never correctly implemented.
    8.0 was an old mistake, has been documented as obsolete and not
    to be used for years.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jun 21 08:11:29 2020 +0100

    odbc: Use bool mnemonic instead of numeric constant

    Make code more readable.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jun 21 08:10:49 2020 +0100

    tds: Remove duplicate line

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jun 12 16:32:46 2020 +0100

    misc: Create test database for nightly tests

Author: detule <ogjoneski@gmail.com>
Date:   Mon Jun 1 20:49:30 2020 -0400

    CICD: Create freetds_test DB

Author: detule <ogjoneski@gmail.com>
Date:   Sun May 31 20:16:58 2020 -0400

    unittests: stats: Add failing test for out-of-catalog call to SQLColumns

Author: detule <ogjoneski@gmail.com>
Date:   Sun May 31 20:20:08 2020 -0400

    odbc: SQLColumns: Ability to operate out-of-catalog

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jun 13 08:56:48 2020 +0100

    odbc: Fix Sybase issue quoting RPCs

    Sybase servers for procedure names inside RPC calls accepts the
    old quoting (using ") but not the new one (using [).
    To call some RPCs (like sp_tables or other metadata ones) ODBC quoted
    identifiers calling tds_quote_id but this works only for language
    queries. Add a tds_quote_id_rpc to distinguish the purpose of the
    quoting and use it for RPCs.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jun 12 20:27:39 2020 +0100

    pool: Close idle connections even if there are no network activity

    The idle connections that were to be closed after "max member age"
    were not closed if there was no network activity.
    This due to the way the main event loop is was written, not accounting
    for additional timeouts.
    Compute timeout for closing idle connections.
    This prevents for instance that momentary heavy load followed by no
    load at all, the connections stays active.

    This fixes https://github.com/FreeTDS/freetds/issues/347.

