Merge: 68ebee23 3d3e006c
Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 18 17:53:47 2023 +0100

    Merge branch 'Branch-1_4'

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 18 03:56:51 2023 +0100

    replacements: Use bool for a variable

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 18 03:56:19 2023 +0100

    apps: Remove memory leak running tsql -C

    Program is terminating so not a big issue, but some tools
    are complaining.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 18 03:55:10 2023 +0100

    apps: Remove some useless forward declarations in tsql

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 18 03:51:00 2023 +0100

    doc: Remove some obsolete sections

    Third-party release website no more updated.
    Endianness was removed many time ago.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 17 23:07:21 2023 +0100

    doc: Checked and updated lot of links

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 17 16:03:53 2023 +0100

    doc: Minor updates

    Remove unused entity, not used anymore.

    Added some copyright years to the list.

    Update URLs (http -> https, .htm -> .html).

    Split very long lines touched to make editing easier and reduce
    git differences in the future.

    Update number of mailing list subscribers.

    Remove reference to some obsolete software.

    Update Automake version used for distribution.

    Use www.freetds.org links instead of ftp://ftp.freetds.org, recent
    browsers do not like ftp.

    Suggest to use sudo command instead of su.

    Update some versions.

    Fix some default configurations.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 16 18:23:29 2023 +0100

    odbc: Fix some issue for tvp test

    Exclude leak test if running on Valgrind.
    mallinfo() does not work correctly on Valgrind.

    Support Windows for leak test using _heapwalk().

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 13 19:12:00 2023 +0100

    doc: Update FAQ page

    Most of the FAQs are not frequent at all anymore, remove some.
    Removed now invalid link for A2i company (acquired by SAP).
    Add missing title.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 13 18:35:55 2023 +0100

    doc: Update some website pages

    Update some protocol links on documentation web page.
    Fix order of news in news web page.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 13 11:57:00 2023 +0100

    doc: Remove obsolete stunnel section in userguide

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 13 11:56:08 2023 +0100

    Update some links on web pages, remove obsoleted ones

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 14:45:24 2023 +0100

    cmake: Add ENABLE_MSDBLIB option

    Similar to configure --enable-msdblib.
    For compatibility with configure the option is disable by default.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 14:45:24 2023 +0100

    cmake: Add ENABLE_MSDBLIB option

    Similar to configure --enable-msdblib.
    For compatibility with configure the option is disable by default.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 12:14:46 2023 +0100

    Start preparing for release 1.4rc1

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 12:04:31 2023 +0100

    Update some documentation, start preparing for version 1.4

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 12:38:38 2023 +0100

    Do not include .la files in RPM output

    See https://fedoraproject.org/wiki/Changes/RemoveLaFiles for
    explanation.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 11:19:44 2023 +0100

    ctlib: Minor space fixes

    Just style.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 09:43:27 2023 +0100

    odbc: Check for not supported DAE request for TVP

    Data at execution is currently not supported for TVP.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Sep 12 04:51:56 2023 +0100

    odbc: Check memory leak setting TVP table multiple times

    We should not leak memory in this case.
    Minor change to assert check to avoid overflow if memory decrease.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 23:43:33 2023 +0100

    odbc: Set TVP column information as expected to be

    Although the data_mstabletype_set_type_info function is not expected
    to be called (as TVP type is only sent to the server while this
    function is called for data from the server), set fields as
    they should be for that type.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 19:43:21 2023 +0100

    odbc: Handle errors for TVP field conversions

    Propagate errors from odbc_sql2tds.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 19:34:36 2023 +0100

    odbc: Added a TODO comment on error returning

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 13:35:25 2023 +0100

    odbc: Add some test for TVP and descriptor fields

    Check SQL_DESC_OCTET_LENGTH, SQL_DESC_CONCISE_TYPE and others.
    Some are not implemented as MS driver at the moment.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 13:54:52 2023 +0100

    odbc: Fix length specification for TVP table

    The length is in bytes, not units.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 09:00:51 2023 +0100

    tds: Use sizeof instead of constant

    Just style change, easier to update buffer length.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Sep 11 08:09:25 2023 +0100

    odbc: Fix SQL_DESC_LENGTH for SQL_SS_TABLE

    MS driver reports 1.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 12:01:40 2023 +0100

    tds: Remove num_cols field from TDS_TVP

    Same as metadata->num_cols.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jun 19 13:01:57 2022 +0100

    odbc: Remove some possible memory leaks in odbc_convert_table

    Do not leak in case of failures.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 15:15:03 2023 +0100

    Simplify TDS_TVP structure

    metadata cannot contain multiple rows but just column
    information.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 16:10:56 2023 +0100

    tds: Use bool for valid_ptr field

    The field is just set true or false.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 16:10:17 2023 +0100

    tds: Use to not strip const specifier

    "src" is a const pointer.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 15:09:04 2023 +0100

    Fix typo in comment

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 10:10:57 2023 +0100

    odbc: Small memory changes for TVP

    Use tds_new0 instead of malloc.
    Return correct error, not -1.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 09:06:03 2023 +0100

    odbc: Use TVP table focus for descriptor attributes

    MS driver access table data if focus is set.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Sep 10 08:56:41 2023 +0100

    odbc: Make tvp test work with MS driver

    Do not prefix table name.
    Do not use scale on numeric (need to fix even normal data).

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Allocate TVP data into IPD, not APD, remove SQL_C_SS_TABLE

    sql_desc_data_ptrsql_data_ptr APD field is used by application and
    should not used.
    Use descriptors instead of new SQLTVPCOLUMN. This avoids some code
    duplication and conversions.
    SQL_C_SS_TABLE does not exist in Microsoft headers.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 9 19:13:41 2023 +0100

    tds: Add missing file to ignore

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 9 17:10:05 2023 +0100

    odbc: Remove warnings on switch missed cases

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 8 08:58:53 2023 +0100

    odbc: Report skipped "connect" test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 8 08:41:32 2023 +0100

    odbc: Use bool for some common test functions

    Returns bool for odbc_db_is_microsoft and odbc_driver_is_freetds.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 8 08:09:30 2023 +0100

    Minor tds_strndup comment updates

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

    ctlib: Support large identifiers

    Sybase extended some structure to fit more large names.
    To keep the ABI the CT-Library versions were updated.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Sep 7 15:50:09 2023 +0100

    Update broken link in user guide

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 2 21:05:35 2023 +0100

    Update some page link in website

Author: Mikhail Terekhov <termim@gmail.com>
Date:   Sat Sep 2 14:54:57 2023 -0400

    Typos.

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

    ctlib: Minor style changes

    Use some more temporary variable.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 1 08:00:35 2023 +0100

    ctlib: Simplify list append, more coherent

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Sep 1 07:59:54 2023 +0100

    ctlib: Remove useless log

    Information already included in previous log.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Aug 30 18:26:19 2023 +0100

    ctlib: Handle found cases directly

    Just code style change, reduce lines.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jan 16 20:36:50 2022 +0000

    osql: Use otool under MacOS

    Mac has no "ldd" command but "otool -L" can be used to list shared
    objects.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Aug 25 17:06:43 2023 +0100

    Allows to specify separate date and/or time format.

    Add "date only format" and "time only format" to locales.conf
    configuration.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Aug 20 11:47:33 2023 +0100

    Remove use after free in some tests

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Aug 20 11:35:32 2023 +0100

    Remove some warnings from ODBC test

    Specifically
      "ignoring return value of 'tds_set_language',
       declared with attribute warn_unused_result"

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Aug 14 09:54:41 2023 +0100

    Fix configure.ac space/tabs

    Use tabs for indentation.
    Remove end of line spaces/tabs.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Aug 12 10:09:23 2023 +0100

    Better logs for iconv initialization

    Report more verbose and helpful logs if tds_iconv_init fails.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Mar 31 20:49:01 2023 +0100

    Fix redirect with Azure

    Fix regression introduced by commit "tds: Fix use-after-free in TLS code".
    In case redirection is used TLS state was not clear correctly so next
    connection was still using old encryption.
    Clear TLS state before attempting any new TCP connection.

Author: Mikhail Terekhov <termim@gmail.com>
Date:   Sun Mar 5 17:55:37 2023 -0500

    login.c (tds_connect): return -TDSEICONVAVAIL instead of -TDSEMEM when tds_iconv_open fails

    This makes error message more clear that character conversion is
    responsible for the connect failure. Fixes #486.

Author: tintinn <tin-tin.nguyen@nih.gov>
Date:   Tue Jan 17 10:47:30 2023 -0500

    Update dblib.c - _get_printable_size

    added more types to _get_printable_size based on /misc/types.csv.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Dec 8 11:22:29 2022 +0000

    Update NEWS.md to remove identification hash

    Avoid to mess with git working directory

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Dec 8 07:20:01 2022 +0000

    tds: Fix use-after-free in TLS code

    tds_close_socket and tds_connection_close could have been called
    while reading/writing TLS sockets so calling tds_ssl_deinit
    cause some used structure to be released while used.

    Reported-by: Jonas Bülow

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Dec 8 07:13:14 2022 +0000

    tds: Generate local enumeration mnemonics instead of global defines

    We don't need to use these definition, do not define constants
    globally generating charset lookup code.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 27 21:40:18 2022 +0000

    tds: Rename SYBTABLETYPE to SYBMSTABLE

    More consistent with other mnemonics.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 27 21:15:23 2022 +0000

    tds: Do not use TDS_ZERO_FREE if not necessary

    The structure is going to be deleted, no reasons to reset pointers.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 27 21:14:44 2022 +0000

    tds: Propagate errors better from tds_mstabletype_put

    Propagate all error, not just TDS_FAIL.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 27 13:15:42 2022 +0000

    Remove some obsolete notes

    Remove obsolete BUGS.md.
    Update .gitattributes pointing to updated file name.
    Suggests sudo instead of su command.
    Add gperf as needed programs installing from git.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Nov 21 11:06:07 2022 +0000

    odbc: Use proper type for desc_alloc

    Not just generic int, it's a type defined by ODBC and saved with
    such type in the structures.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Nov 21 11:05:07 2022 +0000

    odbc: Fix some issues with SQLCopyDesc

    Release a mutex. This should affect only applications not using
    a Driver Manager.
    Do not change sql_desc_alloc_type copying descriptors.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Reset sql_desc_data_ptr setting new type

    From Microsoft documentation this should be done.
    Missing other type of descriptors.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Reset sql_desc_data_ptr setting new type

    From Microsoft documentation this should be done.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Check some attribute of descriptors for TVP

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Fix number of rows for TVP columns

    SQL_DESC_OCTET_LENGTH_PTR is used, SQL_DESC_LENGTH is the number
    of maximum rows.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 13 20:59:31 2022 +0000

    odbc: Add comment to SQLCopyDesc

    Makes code a bit more clear

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 13 20:58:50 2022 +0000

    odbc: For compatibility do not use C++ style comments

    Although all compilers nowadays should support C99 just avoid
    C++ comments.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 15 20:07:31 2022 +0000

    odbc: Add new CHKGetInfo macro for testing

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 15 20:06:50 2022 +0000

    odbc: Check some internal structure

    Make sure some fields are in the right positions.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 15 20:06:10 2022 +0000

    odbc: Improve macro, reduce casts

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Nov 15 20:05:32 2022 +0000

    odbc: Sort some structure layout to save some space

    Reduce structure size, save some bytes.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:57:28 2022 +0000

    odbc: Add some comments to some internal structure

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 13 11:48:05 2022 +0000

    odbc: Try to create missing test database if missing

    Creating database requires admin permissions but many time
    containers or test instances are used so we have such permissions.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 13 10:56:58 2022 +0000

    odbc: Reuse some macros for SQLGetDescField and SQLSetDescField

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 13 10:13:15 2022 +0000

    odbc: Check rows inserted in TVP test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 12 18:44:20 2022 +0000

    odbc: Rewrite number check

    Make it easier to change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 12 18:39:34 2022 +0000

    odbc: Use proper TDS_SERVER_TYPE type for src_type

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 6 12:44:08 2022 +0000

    odbc: Return size from SQLGetDescField for integers

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Nov 6 11:35:41 2022 +0000

    odbc: TVP type name is always coded as wide

    Tested with MS drivers, both on Linux and on Windows.
    SQLBindParameter has no wide version so possibly Microsoft decided
    a single encoding, correctly wide one which can withhold
    any encoding.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Nov 5 20:55:32 2022 +0000

    odbc: Add a test for some TVP errors

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Jun 19 13:01:57 2022 +0100

    odbc: Use array for TVP columns

    Reduce memory usage and code will be more consistent (we use array
    for list of columns).
    Test binding multiple times do not increase memory usage.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Nov 2 11:31:07 2022 +0000

    odbc: Move check to avoid altering structure on wrong parameters

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Nov 2 11:04:30 2022 +0000

    Minor style update for odbc_alloc_table

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Oct 31 22:22:52 2022 +0000

    odbc: Move param_focus to list of attribute

    It's an attribute.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Oct 31 10:31:34 2022 +0000

    odbc: Report skipped test for TVP

    Minor test improve. Instead of reporting success report test
    was skipped.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun Dec 6 20:04:32 2020 +0000

    dblib: Trim CHAR data we read for bcp data

    The same is done by data from file.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Thu Sep 21 07:35:22 2017 +0100

    odbc: Check odbc_sql2tds function with more types

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

    tds: Avoid error if not terminated strftime format

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jun 30 15:15:22 2018 +0100

    odbc: Put a limit to cancel test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Oct 3 10:26:56 2022 +0100

    odbc: Minor changes (typo, spaces)

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Oct 3 10:26:27 2022 +0100

    odbc: Use bool in cancel test

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue Aug 16 09:05:03 2022 +0100

    Parse and fix correctly IPv6 addresses in parse_server_name_for_port

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

    If [] quoting was used for IPv6 literal addresses the name was
    not correctly unquoted causing failure resolving the name.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Jun 22 19:56:52 2022 +0100

    odbc: Add missing executable to .gitignore

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Jun 22 19:55:21 2022 +0100

    odbc: Remove unused variable

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jun 20 09:17:14 2022 +0100

    odbc: Make some variable static

    Not used anywhere else.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jun 20 09:12:58 2022 +0100

    odbc: Make is_numeric boolean

    Minor style change

Author: Brandon Foong <63003202+brandonfoong@users.noreply.github.com>
Date:   Thu Jun 16 13:59:58 2022 +0800

    odbc: add unit tests for table-valued params

Author: Brandon Foong <63003202+brandonfoong@users.noreply.github.com>
Date:   Thu Jun 16 13:59:20 2022 +0800

    odbc: add handling of table-valued params in ODBC and dblib

Author: Szilárd Parrag <szilard.parrag@oneidentity.com>
Date:   Mon Jun 13 12:46:15 2022 +0200

    odbc: add unit tests for connection string parsing

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Mon Jun 13 12:48:27 2022 +0200

    odbc: Add support for quoted string in connection string

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Jun 11 07:53:44 2022 +0100

    Fix static compile with readline library

    In static compiling order is more important, library depending
    on others should came first, not after.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Tue May 31 07:40:41 2022 +0100

    tds: Fix for change in OpenSSL 1.1.1l

    Some strings in OpenSSL 1.1.1l are not NUL terminated as in 1.1.1k.
    This was causing a wrong check for hostname causing failure connecting
    to database.
    Terminate always extracted hostname string to avoid this issue.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sun May 29 18:44:26 2022 +0100

    Take into account bulk information from server for Sybase

    Issuing "insert into bulk" statement the server returns some
    information for the table.
    Use them, they are surely more correct than the one we assume
    and compute.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 12:41:40 2022 +0100

    tds: Fix column declarations for Sybase

    Consider usertype to be able to match more correctly initial
    database declarations.

    This patch is based from initial work from Benh LIEU SONG.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 12:41:40 2022 +0100

    tds: Use bool for variable

    Just style change.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Apr 20 06:38:08 2022 +0100

    tds: Simplify structure copy

    Just use C, it's a plain structure.
    Really minor.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Apr 20 06:37:24 2022 +0100

    apps: Avoid additional space building CREATE TABLE query

    Really minor.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Fri Apr 15 12:41:40 2022 +0100

    tds: Use on_server.column_type instead of column_type for bulk

    When sending to server the server side constant should be used,
    not client related ones.

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.

