Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 23, 2015
  1. @freddy77

    Simplify dbconvert_ps code a bit

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 22, 2015
  1. @freddy77

    Remove memory leak in dbconvert if conversion overflows for binaries

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 21, 2015
  1. @freddy77

    Add -E option to datacopy to keep identity values

    freddy77 authored
    Identity columns are often used as artificial keys and as such there
    are often child tables which make reference to the identity values
    from their parents.
    
    Having the ability to keep these values is therefore quite important
    as the default behaviour of handing out new values would break and
    relationships with child tables.
    
    Signed-off-by: Matthew Green <matthew.green@datamartcomputing.com>
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  2. @freddy77

    Update NEWS files

    freddy77 authored
    Looked at git logs to find changes since version 0.91.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  3. @freddy77

    Fix comment typo

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  4. @freddy77

    Avoid to override utf-16 configuration setting

    freddy77 authored
    Avoid to override configuration read from freetds.conf with a zero
    value from login information.
    
    Problem reported by Daniel Fazekas <fdsubs@t-online.hu>
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 20, 2015
  1. @freddy77

    Remove bad assertion in dblib

    freddy77 authored
    Do not crash with an assertion if a connection time out.
    
    Problem reported by Daniel Fazekas <fdsubs@t-online.hu>
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 19, 2015
  1. @freddy77

    Update datacopy man page

    freddy77 authored
    Add -T option
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  2. @freddy77

    Add user guide documentation for "use utf-16" option

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  3. @freddy77

    Fix test for UTF-16 encoding

    freddy77 authored
    Being variable we cannot compute translated length in advance.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  4. @freddy77

    Use UTF-16 in ODBC based on connection charset

    freddy77 authored
    If connection made successfully with UTF-16 use UTF-16 instead of UCS-2
    even in ODBC.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  5. @freddy77

    Add support for UTF-16 transfer encoding

    freddy77 authored
    Add support for UTF-16 transfer encoding to support unicode characters
    outside the BMP on SQL Sever.
    
    Users can toggle between 'UTF-16' and 'UCS-2' support via 'use utf-16'
    config.
    
    Original patch and comment from Jun Kang Chin.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  6. @freddy77

    Optimise reading a field from file not setting memory twice

    freddy77 authored
    Avoid to reset memory with a memset and then write again with file
    contents.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  7. @freddy77

    Move parent field from TDSCONNECTION to TDSSOCKET

    freddy77 authored
    parent is used to distinguish different socket in a single MARS connection
    so is really wrong to have it in TDSCONNECTION and not in TDSSOCKET.
    
    This caused spurious crash on some tests running with MARS enabled.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 18, 2015
  1. @freddy77

    Documentation updates for new release

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  2. @freddy77

    Remove srclen parameter from tds_convert if not needed

    freddy77 authored
    Fixed types does not need this parameter so remove from all conversion
    calls. Most of them was already missing.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  3. @freddy77

    Write a _dblib_conver_err function to convert convertion errors

    freddy77 authored
    There are different calls to tds_convert so we need to convert error
    returned by tds_convert to dblib error.
    Write a function to reuse this code
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  4. @freddy77

    Allow to specify a -T option to set maximum text and image size

    freddy77 authored
    Vendor tools and freebcp already allow to specify this parameter.
    This fix also the problem if default text size of the two database
    servers are different. This could happen for instance moving data
    from Sybase to Microsoft or viceversa.
    
    Signed-off-by: Matthew Green <matthew.green@datamartcomputing.com>
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  5. @freddy77

    Allow to specify an empty owner creating table with datacopy

    freddy77 authored
    This allow creating table without knowing the right owner, database will
    use default one.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  6. @freddy77

    Fix possible number truncation logging file offset

    freddy77 authored
    On some architectures a conversion from 64 to 32 bit was possible.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 17, 2015
  1. @freddy77

    Use dbdata and dbdatlen instead of dbbind&C

    freddy77 authored
    Instead of allocating buffer, use dbbind to these buffers and then pass
    these buffers to bcp_bind/bcp_collen just retrieve the row and use
    dbdata and dbdatlen to pass data for bcp.
    
    This avoid copying data twice. Also allocate less memory in the process
    of transferring data.
    
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  2. @freddy77

    Implements DBTEXTSIZE option for dbsetopt.

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  3. @freddy77

    Assure dbdata never returns NULL is data is not NULL

    freddy77 authored
    dbdata returns NULL is either error or data is NULL.
    Assure that even if data is empty ('' string) we return a valid pointer
    instead of NULL one.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  4. @freddy77

    Remove duplicate dbproc check

    freddy77 authored
    dbcolptr already check if dbproc is valid so remove check for dbproc
    before calling dbcolptr.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 16, 2015
  1. @freddy77

    Add dbprcollen to exported Windows symbols

    freddy77 authored
    Without this line Windows compiled dblib library does not export this
    function.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Commits on Mar 15, 2015
  1. @freddy77

    Miscellaneous user guide updates

    freddy77 authored
    Update TEXTSIZE details, FreeTDS currently handle BLOBs columns much
    better.
    interfaces file can have different places.
    Extend Windows section that speaks about search paths for dynamic
    libraries.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  2. @freddy77

    Update freetds version

    freddy77 authored
    Prepare a new release
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  3. @freddy77

    Use new dbprcollen instead of old dbwillconvert

    freddy77 authored
    Sample program need update as dbwillconvert does not return string
    length required as used to do.
    Also update old comment on this part of code.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  4. @freddy77

    Move old dbwillconvert length functionality to a new dbprcollen

    freddy77 authored
    dbwillconvert from FreeTDS used to return length required for string
    translation however this caused problems porting some programs from
    proprietary libraries to FreeTDS.
    Move this functionaliy to a new dbprcollen (FreeTDS extension).
    Also removed the functionality from tds_willconvert as was not used.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  5. @freddy77

    Update documentation on MS character encoding

    freddy77 authored
    MS moved to UTF-16 for recent versions.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  6. @freddy77

    Some updated for some external projects using FreeTDS

    freddy77 authored
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  7. @freddy77

    Remove old Java references.

    freddy77 authored
    At beginning some FreeTDS guys fork a project for Java however it's quite
    confusing (and wrong) to state currently that FreeTDS is C and Java.
    Also this old fork died quite soon in favour of jTDS.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  8. @freddy77

    Remove possible memory leak

    freddy77 authored
    coldata was not freed if input file contained too large data.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  9. @freddy77

    Returns correctly value on failure from dbconvert

    freddy77 authored
    In case destination length was invalid a FAIL was returned however
    dbconvert return -1 on failure, not FAIL.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  10. @freddy77

    Read blob using streams

    freddy77 authored
    More code reuse. Avoid to allocate big buffers if not necessary.
    
    Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Something went wrong with that request. Please try again.