-
Notifications
You must be signed in to change notification settings - Fork 0
Release Notes
Fix for 64-bit int problems and decimal problems.
Fix for issue #42.
Fix Windows compile error.
Assume unixODBC on OS X.
Added context manager support to Cursor.
Added padding for driver bugs writing an extra byte.
Cursor.executemany() now accepts an iterator or generator.
Compilation improvements for FreeBSD, Cygwin, and OS/X.
Use SQL_DATA_AT_EXEC instead of SQL_DATA_LEN_AT_EXEC when possible for driver compatibility.
Row objects can now be pickled.
Added Cursor.commit() and Cursor.rollback(). It is now possible to use only a cursor in your code instead of keeping track of a connection and a cursor.
Added readonly
keyword to pyodbc.connect(). If set to True, SQLSetConnectAttr SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY. This may provide better locking semantics or speed for some drivers.
Fixed an error reading SQL Server XML data types longer than 4K.
Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared") when a catalog function is executed.
Fixed building on Python 2.5. Other versions are not affected.
Update to build using gcc 4.6.2: A compiler warning was changed to an error in 4.6.2.
This is the first official pyodbc release that supports both Python 2 and Python 3 (3.2+). Merry Christmas!
Many updates were made for this version, particularly around Unicode support. If you have outstanding issues from the 2.1.x line, please retest with this version.