Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 30, 2015
  1. Merge pull request #23 from geota/master

    authored
    Fixes #22 - Increase number of loop iterations to fully pull in data
  2. Create error before freeing HSTMT.

    authored
    The previous fix from Tim Golden needed to be applied in another area.
    Thanks Tim.
  3. @tjguk

    Correctly trap errors triggered by a call to nextset()

    tjguk authored committed
Commits on Apr 29, 2015
  1. More SQLWCHAR to ODBCCHAR.

    authored
    I didn't mean to push the previous to the master branch yet.  This
    should have been rebased into it.
  2. Switch from SQLWCHAR to our own type.

    authored
    Fixes #43.  unixODBC does not define the SQLWCHAR type to match its
    requirements (2-byte chars), so I can't rely on it.  I've added
    ODBCCHAR.
    
    At this time it is hardcoded to 2-bytes which works for Windows and
    unixODBC.  I need to add a mechanism to override this.
    
    Tested on OS X postgres, Ubuntu 14 64-bix postgres, and Windows 7 64-bit
    SQL Server.
Commits on Apr 28, 2015
  1. Fix Windows compile error.

    authored
Commits on Apr 27, 2015
  1. Clear extra error during decimal import.

    authored
    Potential fix for #38.  pyodbc first tries to import cdecimal and then
    loads decimal if not found.  The error after attempting cdecimal was not
    being cleared so later versions of Python stopped the load.
Commits on Mar 16, 2015
  1. @jcristau

    Fix cursor.description for SQL_*BINARY columns

    jcristau authored
    We return a bytearray on python >= 2.6.
Commits on Aug 19, 2014
  1. Merge pull request #26 from jbq/master

    authored
    Use cdecimal to speedup
  2. @jbq

    Fix overflow in GetDataDecimal

    jbq authored
  3. @jbq

    Use cdecimal to speedup

    jbq authored
Commits on Mar 7, 2014
  1. @geota

    Fixes #22 - Increase number of loop iterations to fully pull in data …

    geota authored
    …from VARCHAR 65000 fields.
Commits on Oct 13, 2013
  1. @maparent
Commits on May 19, 2013
  1. Added support for pickling Row objects.

    Michael Kleehammer authored committed
Commits on Nov 1, 2012
  1. Use SQL_DATA_AT_EXEC instead of SQL_DATA_LEN_AT_EXEC when possible.

    authored
    Some drivers have problems with the LEN version, so eliminating use when possible.
    
    There is an ODBC GetInfo query to determine if LEN is required.  Upon connection, this is
    cached and LEN is used if this is 'y'.  FreeTDS, for example, requires LEN in some cases.
Commits on Sep 27, 2012
  1. Eliminated warnings on OS/X

    authored
    Two 64-bit warnings.  Also turned off the ODBC deprecation warnings.  Apparently Apple has
    decided not to maintain iODBC for OS/X in the future.  ODBC can still be used, but iODBC will
    have to be installed separately.
Commits on Sep 26, 2012
Commits on Aug 17, 2012
  1. Issue 278: Pad str read buffer for driver bug.

    authored
    I'm pretty sure the driver is writing a NULL terminator when it shouldn't, so I've added 2
    bytes to allow for a UCS2 terminator.
Commits on Jul 1, 2012
  1. Added context manager support to Cursor object.

    authored
    Cursor objects can now be used in "with" statements and will automatically commit the
    transaction if successful.
    
    This is part of the effort to allow programs to be written using only Cursors.  There are times
    when having separate connections and cursors are necessary, but very rare.  By duplicating
    connection functionality in the cursor, most programs can probably use a single Cursor object
    everywhere.
Commits on Jun 23, 2012
Commits on Jun 22, 2012
  1. Added Cursor.commit and Cursor.rollback

    Michael Kleehammer authored
Commits on May 23, 2012
  1. Issue 264: Parameters leaked if an exception is raised.

    Michael Kleehammer authored
Commits on Feb 14, 2012
Commits on Jan 17, 2012
  1. fix: Function sequence error with prepared execute, SQLTables, same e…

    Michael Kleehammer authored
    …xecute. (Lost fix)
    
    This was fixed in 2.1.12 and lost during the Python 3 conversion.
    
    The saved prepared statement was not cleaned up when a SQLTables or similar function was used.
    If the next execute used the same SQL, pyodbc did not call SQLPrepare.
    (cherry picked from commit 7fdec2f)
Commits on Jan 13, 2012
Commits on Dec 28, 2011
  1. Issue 178: Fixed compilation issues with 4.6.2

    authored
    Removed deprecated Row_slice.  The sequence structure changed this from an actual function
    pointer to a void pointer.  GCC 4.6.2 would not allow the assignment of Row_slice to void*.
    This may not build under 2.5.
    
    Also eliminated a bunch of casts to see if newer GCC would uncover other issues.
Commits on Dec 18, 2011
Commits on Dec 8, 2011
  1. Python 2 crash when ASCII keyword values passed to connect.

    authored
    MakeConnectionString assumed that values were already converted to Unicode, but this was not
    the case.  Added TextCopyToUnicode to contain the difference which cleans the code up nicely.
    
    Discovered while trying to reproduce Issue 223.
Commits on Nov 3, 2011
Commits on Oct 27, 2011
  1. Issue 170: Fixed memory overwrite when converting Unicode to SQLWCHAR.

    Michael Kleehammer authored
    Many thanks to davidp.r...@gmail.com for finding this.
Something went wrong with that request. Please try again.