Sybase module 0.36pre6 released

Dave Cole djc at object-craft.com.au
Mon Feb 24 05:37:08 CET 2003


WHAT IS IT:

The Sybase module provides a Python interface to the Sybase relational
database system.  It supports all of the Python Database API, version
2.0 with extensions.

NOTES:

This is another incremental improvement to FreeTDS support.

You can build for FreeTDS like this:

     python setup.py build_ext -D HAVE_FREETDS -U WANT_BULKCOPY
     python setup.py install

If you are using FreeTDS 0.60 change the compile command to:

     python setup.py build_ext -D HAVE_FREETDS=60 -U WANT_BULKCOPY

The module is available here:

    http://www.object-craft.com.au/projects/sybase/download/sybase-0.36pre6.tar.gz

The module home page is here:

    http://www.object-craft.com.au/projects/sybase/

CHANGES SINCE 0.36pre5:

* Fixed compilation for non-FreeTDS users.

CHANGES SINCE 0.35:

* Fixed bug in ctx.c:ct_con_drop() which caused SEGFAULT with
  FreeTDS.

* Export version of FreeTDS used in sybasect.__have_freetds__

* Set Sybase._ctx as the global context soon as in Sybase.py to
  avoid problems with undefined global ctx.

* Look for SYBASE_OCS on all platforms.

* Fixed spelling error in ctx.c:global_ctx().

* Fixed cursor locking bug with .nextset() method.

* Added .debug_msg() method to context type which writes to the debug
  log when debugging is enabled for the context object.

* Merged AIX build changes from Dietmar Rothkamp.

* Now compiles with FreeTDS 0.61.

* Limit size of TEXT fields to 65536.

* Removed references to CS_PENDING and CS_BUSY in Sybase.py.

* Bind CS_VARBINARY_TYPE as CS_BINARY_TYPE.

* Do not attempt to ct_cancel() when handling an exception if have not
  connected to the server.  Bug fix in Sybase.py.

* Seems like FreeTDS reports the wrong maxlength in ct_describe() for
  CS_NUMERIC_TYPE and CS_DECIMAL_TYPE.  Ignore FreeTDS and assume a
  maxlength of sizeof(CS_NUMERIC).  Bugfix in databuf.c.

* Use correct T_STRING_INPLACE type in structure member descriptions.
  The code does not use Python API for these members.

* Debug output for DataFmt now includes scale and precision.

* More definitions added to freetds.h; CS_SRC_VALUE, CS_CLEAR.

-- 
http://www.object-craft.com.au






More information about the Python-list mailing list