Author: Benh LIEU SONG <benh.lieusong@gmail.com>
Date:   Fri Apr 23 18:44:20 2021 +0200

    apps: Support identity

    Set identity on destination table if identify was set on source.

Author: Benh LIEU SONG <benh.lieusong@gmail.com>
Date:   Fri Apr 23 18:44:20 2021 +0200

    apps: s/FMTONLY/select where 0=1

    Use more portable and supported syntax.

Author: Benh LIEU SONG <benh.lieusong@gmail.com>
Date:   Fri Apr 23 18:44:20 2021 +0200

    tds: Fix indentation in source

    Original change contained in a PR from Benh LIEU SONG

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 09:46:50 2022 +0100

    Use unaligned access in replacement iconv

    System iconv does not enforce aligned access.
    Also this could happen reading/writing directly to TDS packets.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 09:43:16 2022 +0100

    Add an autogenerated file to .gitignore

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 09:38:39 2022 +0100

    Use bool for tds_submit_rollback and tds_submit_commit

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Mar 6 21:16:52 2022 +0000

    datacopy: Print errors on standard error, not standard output

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Mar 5 12:22:51 2022 +0000

    tds: Do not pass around some pointers

    Possibly this was due to some copy&paste from another code.
    No reasons to pass the function pointer and context, they are always
    the same.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Mar 5 12:17:23 2022 +0000

    tds: Remove call to RAND_pseudo_bytes

    Deprecated. RAND_bytes should be present instead.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Mar 5 12:14:19 2022 +0000

    Fix minor typos

    A command and a compile time error message.

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Tue Oct 23 11:05:20 2018 -0400

    Address miscellaneous compiler warnings.

    * tds/sspi.c: Define _WIN32_WINNT before <config.h>, which might
      otherwise supply a slightly different definition.

    Co-Authored-By: Pavel Ivanov <ivanovp@ncbi.nlm.nih.gov>

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jul 8 10:01:22 2018 +0100

    tds: Always use Unicode version of SSPI

    This allows to support passwords with no-ASCII.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Feb 10 09:40:09 2022 +0000

    Do not install odbcss.h if already in the system

    The provided include is supposed to export some defines that
    should be already be defined by windows headers.
    If they are available they should be used instead.
    This fixed conflict with systems like Windows and possibly MingW.

Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Mon Feb 7 15:39:21 2022 +0400

    build-sys: fix out-of-tree mingw compilation

    x86_64-w64-mingw32-windres -i ../../../src/odbc/setup.rc --input-format=rc -o setup.res -O coff
    ../../../src/odbc/setup.rc:19:10: fatal error: version.rc: No such file or directory
       19 | #include "version.rc"
          |          ^~~~~~~~~~~~

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Wed Jan 19 11:33:01 2022 -0500

    tds/convert.c: Fix floating-point -> integer bounds.

    - Use distinct macros for integer and FP source types as needed.
    - Use power-of-two upper bounds with < when FP source types are a
      consideration, to account for pre-conversion truncation or possible
      precision loss as appropriate.
    - Account for pre-conversion truncation (NOT floor computation) of
      negative FP values and for possible limited precision around the
      lower bounds of 32- and 64-bit signed integer types.
    - Per Freddy, don't bother with explicit l suffixes; 16-bit systems
      are not relevant to FreeTDS.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jan 30 19:52:19 2022 +0000

    Add convert_bounds test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Jan 25 21:04:16 2022 +0000

    utils: Add small library for multiprecision integers

    Very limited, intended for testing.

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Wed Jan 19 11:33:01 2022 -0500

    tds: Simplify check in tds_convert_money4

    Surely converting to TDS_UINT8 the upper bound is respected,
    so just check the lower.
    This is also similar to tds_convert_money.

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Wed Jan 19 11:43:28 2022 -0500

    Address more LLVM Clang static analyzer (scan-build) feedback.

    - ct_bind: Drop redundant early colinfo assignment.
    - dbprrow: Bail if somehow first encountering a non-REG_ROW, in which
      case col_printlens will still be null.

    - lang_ct_param.c (insert_test): Zero-initialize rows_found.
    - rpc_ct_setparam.c (ex_display_results): Avoid memory leaks in some
      error cases.
    - dblib t001{3,4}.c (test): Avoid leaks when unable to open output file.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Jan 21 09:03:23 2022 +0000

    Remove useless check

    "date" field is already TDS_INT, no reasons to check.

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Wed Jan 19 11:56:52 2022 -0500

    ct_describe: For CS_BIGDATETIME_TYPE, supply the server type in usertype.

    This minor abstraction violation permits distinguishing Microsoft's
    DATETIMEOFFSET type (for which a CS_DATEREC::datetzone value of zero
    indicates UTC) from its DATETIME2 type (for which the time zone is
    unknown and the field is simply zero by default).

Author: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
Date:   Wed Jan 19 11:53:02 2022 -0500

    _ct_handle_client_message: Report appropriate severity values.

    Translate internal TDS severity values (EXINFO et al., from syberror.h)
    to CS_SV_* values, via a new static _ct_translate_severity helper,
    rather than copying binary values that don't actually line up.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jan 15 20:24:21 2022 +0000

    osql: Run through shellcheck

    Mostly missing quotes.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jan 15 18:20:53 2022 +0000

    osql: Close file before reading it

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jan 15 18:19:59 2022 +0000

    Remove useless spaces

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Jan 4 20:37:57 2022 +0000

    ci: Use Visual Studio 2019 and MSSQL 2019

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jan 3 11:13:51 2022 +0000

    tds: Optimize filling using memset instead of manual loop

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jan 3 11:13:18 2022 +0000

    tds: Remove warning

    Some compiler reports that bitpos can be used not initialized.
    Not true not remove the warning explicitly initializing it.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jan 3 11:14:24 2022 +0000

    tds: Update comment

    Update grammar and indentation

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Oct 27 03:02:33 2018 +0100

    tds: Restrict protocol returned by tds_lookup_host to TCP

    Potentially limit the multiple addresses returned by getaddrinfo.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jan 2 21:34:52 2022 +0000

    tds: Use bool in config.c

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jan 2 21:29:35 2022 +0000

    tds: Fix typo in comment

    ascii -> ASCII

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jan 2 10:04:19 2022 +0000

    pool: Use bool for signal flags

    Just style update.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jan 1 17:36:09 2022 +0000

    pool: Use poll instead of select

    select is limited to 1024 file descriptors on Unix.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Dec 31 16:46:57 2021 +0000

    ctlib: Some updates to ct_send

    Move ret variable more local.
    Reduce some indentation putting returning block first.
    Remove a use of not initialized case.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 28 16:26:00 2021 +0000

    Move tds_get_token_size to pool code

    The function is currently not used (src/pool/stream.c is not currently
    used by pool code) and also it's not correct for DONE tokens.
    Move out of main code.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Dec 31 17:04:25 2021 +0000

    tds: Simplify tds_set_iconv_name

    Reuse code for returning the found encoding.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Dec 31 17:03:14 2021 +0000

    tds: Use bool for iconv_initialized

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Nov 4 22:48:43 2016 +0000

    tds: Put all Unicode encodings at the beginning of the list

    Not necessary but nice to have all together.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Dec 31 16:00:02 2021 +0000

    Use bool for is_null

    Minor style change

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Mar 14 20:55:49 2021 +0000

    odbc: Remove some warnings

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Dec 26 20:20:05 2021 +0000

    Check for system function using header

    It seems that function is available to link but disable by iOS headers
    so check it using code instead of defining it and linking (as
    AC_CHECK_FUNCS does).

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Dec 24 10:32:50 2021 +0000

    apps: Check for system function presence

    fisql execute system commands using system function which is
    not currently available on iOS. Avoid to use it and disable the
    specific fisql feature.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Dec 14 18:32:07 2021 +0000

    Capitalise ODBC in configure script

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Dec 12 19:46:14 2021 +0000

    defncopy: Supports varchar(max)/varbinary(max)

    If length is -1 it means varchar(max) or varbinary(max) types.

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

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Dec 12 17:47:45 2021 +0000

    defncopy: Reuse is_in function

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Dec 11 13:15:25 2021 +0000

    Defines SIZEOF_LONG_INT during configure

    This macro is used by some ODBC driver manager.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Dec 11 13:34:18 2021 +0000

    ctlib: Remove useless parenthesis

    Just minor style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Dec 4 16:06:29 2021 +0000

    ctlib: Avoid some double indirection, style updates

    Embed CS_CLIENTMSG/CS_SERVERMSG directly into
    cs_diag_msg_client/cs_diag_msg_svr.
    Constify some pointers.
    Move some declarations to inner blocks to reduce their scope.
    Avoids some double pointers.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 28 14:44:36 2021 +0000

    pool: Use proper NUL-terminated string for pre-login instance name

    Specifications say that instance name field must be NUL-terminated.
    This fix compatibility with some clients.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 28 14:45:57 2021 +0000

    tds: Remove unused tds parameter from tds_quote

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 28 14:43:31 2021 +0000

    dblib: Use bool in dbsafestr

    Just a style change

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 6 17:58:04 2021 +0000

    ctlib: Handle some possible memory failures

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 6 17:58:42 2021 +0000

    odbc: Rewrite ODBCINSTPROPERTY structure

    Just comment style.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 6 17:53:19 2021 +0000

    Change return parameter of odbc_parse_connect_string to bool

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 30 09:22:14 2021 +0100

    Fix compatibility issue with some TLS implementations

    Not found using directly a SQL Server database but with some
    proxy program using different TLS settings.
    The TLS inside TDS packet was not ending with the handshake
    but had some additional bytes containing no data.
    Strip this tail.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Aug 28 16:15:22 2021 +0100

    Move TDS_xINTPTR declaration to a separate header

    Some system define intptr_t in a way not compatible with FreeTDS
    requirements (sizeof(intptr_t) == sizeof(void*)) and
    causing conflicts.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Aug 24 19:00:13 2021 +0100

    tds: Avoid unaligned access using replacement iconv

    Test string for checking iconv should be memory aligned.
    Extra checks are used to check the alignment explicitly in
    system able to do unaligned access.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Aug 24 19:35:42 2021 +0100

    doc: Do not try to extract git information from copied file

    Building out of tree a copied file was used and passed to git
    causing the information for XML documentation to be missing.
    This was reported just as a warning.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Aug 24 19:01:02 2021 +0100

    tds: Update a comment in code

    Mutual flag is set by default only with MSSQL.

Merge: 927194da 43fc0325
Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Aug 18 11:09:33 2021 +0100

    Merge 1.3 release into master

Author: Jan umgarten <marsupilami79@gmx.de>
Date:   Mon Aug 16 15:07:58 2021 +0200

    Keep make from failing if the source path contains spaces.

Author: Jan umgarten <marsupilami79@gmx.de>
Date:   Mon Aug 16 15:07:58 2021 +0200

    Keep make from failing if the source path contains spaces.

Author: Degaart <user.email>
Date:   Sun Jul 11 15:56:08 2021 +0300

    Fix errors when including cspublic.h in a C++ source file

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu May 27 13:14:19 2021 +0100

    Improve unit tests section in user guide

    Make clean they are not unit tests and how to setup PWD file.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu May 27 13:11:33 2021 +0100

    Update file names in user guide

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun May 23 09:12:07 2021 +0100

    Upgrade ACX_PTHREAD

    Use new version of M4 macros.

Author: Craig A. Berry <craigberry@mac.com>
Date:   Sun May 23 09:20:41 2021 +0100

    Make VMS build successfully

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun May 23 09:13:16 2021 +0100

    Fix compilation of user guide if out-of-tree build is used

    userguide.xsl file has to be available in out of tree doc
    directory.

