Commits on Jul 22, 2016
  1. @freddy77

    Reduce indentation level in pool_user_read

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 22, 2016
  2. @freddy77

    Remove warning compiling with clang

    clang complains about signed shift not portable.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 22, 2016
  3. @freddy77

    Remove some string overflows from VMS code

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 22, 2016
  4. @freddy77

    pool: Avoid to overwrite packet if not entirely written

    This can happen if packet is not entirely written to server after
    being read from client.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 22, 2016
Commits on Jul 18, 2016
  1. @freddy77

    Extends cs_dt_crack to support newer types

    This add a new cs_dt_crack_v2 ABI function (cs_dt_crack API is redirected
    to it using a preprocessor macro). This to make the extension of
    CS_DATEREC more safe (version of 1.0 could call cs_dt_crack with
    CS_BIGDATETIME_TYPE/CS_BIGTIME_TYPE without having these fields written
    which would possible cause memory corruption on version compiled with
    these fields missing).
    This make sqsh compile and work with newer date/time types.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 18, 2016
  2. @freddy77

    Make AppVeyor build with OpenSSL enabled

    CMake was not finding OpenSSL.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jul 18, 2016
Commits on Jul 10, 2016
  1. @freddy77

    attempt multiple connections if availability groups are detected

    This allows the server to start up properly.
    Connection are retried after 1 seconds for maximum 10 times.
    The global timeout still is in place.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 21, 2016
Commits on Jun 27, 2016
  1. @freddy77

    Fix NUMERIC column for bcp native format

    Prefix was not handled correctly.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 27, 2016
Commits on Jun 26, 2016
  1. @freddy77

    Fix freebcp -E (identity columns)

    An additional query prevented code to handle correctly column types.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 26, 2016
Commits on Jun 21, 2016
  1. @freddy77

    enable again tds_gettime_ms

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 21, 2016
  2. @freddy77

    fix possible file descriptor leak

    This was introduced quite recently
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 21, 2016
Commits on Jun 20, 2016
  1. @freddy77

    attempt to connect to any address at a time to support availability g…

    …roups
    
    If availability groups are available the servers may be listening for
    connection based on state.
    Try all IPs to get the good one. The attempts are made in parallel.
    There is still no retry to wait a server available on switch time.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 20, 2016
Commits on Jun 18, 2016
  1. @freddy77

    Fix internal result state in dbcanquery

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 18, 2016
  2. @freddy77

    Test dbcanquery behaviour

    Function should discard all row results.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 18, 2016
  3. @freddy77

    Avoid to strip spaces from procedure text.

    NTBSTRINGBIND strip spaces at the end.
    Using STRINGBIND with 0 size cause string to be just NUL terminated.
    The 0 would lead to a possible overflow however we check the column
    len before doing the bind to avoid such possibility.
    
    Original patch from Nem W Schlecht.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 18, 2016
Commits on Jun 17, 2016
  1. @freddy77

    Remove redundant check in dbcanquery

    Check already in CHECK_CONN.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 17, 2016
Commits on Jun 12, 2016
  1. @freddy77

    remove old ChangeLog files

    ChangeLogs were not updated, now git log is used
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 12, 2016
  2. @freddy77

    remove ODBCNODMLIBAPP automake macro

    Avoid using two macros for the same purpose using absolute path.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 11, 2016
  3. @freddy77

    allows to specify 5.0 as tds protocol version during configure

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 12, 2016
  4. @freddy77

    do not compile as bundle under Mac OS X is --with-odbc-nodm is specified

    In this case the driver will be used as a dynamic library (not loaded
    dynamically) so compile as such.
    In case a DM is used unit tests/application will link to the DM which
    will load the driver (requiring to be a module on old Mac OS X versions).
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 11, 2016
Commits on Jun 10, 2016
  1. @freddy77

    replace BYTE with unsigned char in ODBC files

    BYTE is not supported on some platforms.
    This fixes Mac OS X build.
    unixODBC headers files and Windows platform define it.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 10, 2016
Commits on Jun 4, 2016
  1. @freddy77

    Add some missing include to fisql utility

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 5, 2016
  2. @freddy77

    Support all types in dbvarylen

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 5, 2016
  3. @freddy77

    Remove some possible switch warnings

    Handle all cases so some compilers does not give warnings.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 5, 2016
  4. @freddy77

    Remove a warning

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 5, 2016
  5. @freddy77

    Remove duplicate check

    Check for dbproc was already done in dbacolptr
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 4, 2016
  6. @freddy77

    Reuse code to return a dblib type from a TDSCOLUMN

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed Jun 4, 2016
Commits on Jun 1, 2016
  1. @freddy77

    use bjoern utf8 decode function to convert from utf8

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed May 27, 2016
Commits on May 31, 2016
  1. @freddy77

    avoid using a sed in test script

    freddy77 committed May 31, 2016
Commits on May 30, 2016
  1. @freddy77

    move threadsafe.c from tds to utils

    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed May 30, 2016
  2. @freddy77

    output some more error information on tests

    freddy77 committed May 30, 2016
Commits on May 29, 2016
  1. @freddy77

    fix nightly test problem

    Part of the code was failing due to error in grab_logs function.
    As set -e is used any error cause abortion.
    Remove the error if an executable for a .log file is not present.
    freddy77 committed May 29, 2016
  2. @freddy77

    minor style change

    freddy77 committed May 27, 2016
Commits on May 27, 2016
  1. @freddy77

    remove a warning compiling under Windows

    _strdup should be called instead of strdup.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
    freddy77 committed May 27, 2016
  2. @freddy77

    add bjoern-utf8 files

    These files implements UTF-8 decoding algorithm described in
    http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
    freddy77 committed May 27, 2016