Gregory Bond

Show:

What's happening?

  • coredump in databuf

    Coredump in databuf handling binary/text columns, usually in a BCP-in. Code assumes PyString without testing, so passing a python Integer (etc) coredumps. Attached test case demonstrates. Attached patch fixes (line numbers might be off... had to un-mangle the "truncate" patch).

    2008-10-23 22:43:44 UTC in Sybase module for Python

  • truncate option for BCP-in

    Attached patch adds a truncate option to DataBuf and Bulkcopy objects to silently truncate when a string value in a BCP-in operation is too big for the underlying column. Default is the existing behaviour: raise TypeError.

    2008-10-23 03:49:24 UTC in Sybase module for Python

  • cursor.rowcount is -1

    In the re-factored 0.39 Cursor() objects, rowcount is always -1. Mind you, this has been broken for a while (back as far as 0.37 at least.)

    2008-10-22 05:45:55 UTC in Sybase module for Python

  • Comment: 0.39 breaks Connection().execute()

    Ignore that patch, it doesn't handle the non-select case "db.execute('use dbname')" etc. Attached patch handles all cases correctly except multiple selects - this patch returns all results in one set, 0.38 returned multiple sets. e.g. for the above case would return [[(1, 2, 3), (4, 5, 6)]] vs 0.38 [[(1, 2, 3)], [(4, 5, 6)]] File Added: diffs.

    2008-10-15 00:29:30 UTC in Sybase module for Python

  • 0.39 breaks Connection().execute()

    All previous versions have supported returning data from the execute() method of a Connection object. 0.39 breaks this, execute() now returns None. e.g.: db = Sybase.Connect(....) print db.execute('select 1,2,3') We use this facility pretty much exclusively in preference to cursors. The following patch seems to restore at least some backwards-compatible behaviour for single...

    2008-10-14 06:14:07 UTC in Sybase module for Python

  • Resurrect Sybase.Bulkcopy functionality

    The attached patch (vs 0.38pre1, more or less) resurrects the high-level bulk copy support that has been missing since the Sybase.py re-write. It works well enough for me, but I've not beaten heavily on it. Some caveats: * I've not thought about locking for BCP objects * I've added some documents but I don't have access to LaTex to generate new HTML and check the changes. * It's...

    2007-01-11 05:35:44 UTC in Sybase module for Python

  • Add structured error information to Sybase.DatabaseError

    Sybase carefully reports structured error messages/line numbers etc, but this is lost when constructing the exceptions (it's mashed into text). We can easily add the underlying structured exception info as received from Sybase.

    2007-01-10 00:34:21 UTC in Sybase module for Python

  • debugging in BLK objects dumps core

    Enabling debug on a BLK object dumps core due to busted fmt string. --- orig/python-sybase-0.38pre1/blk.c Fri Dec 8 03:17:48 2006 +++ python-sybase-0.38pre1/blk.c Tue Jan 9 08:58:43 2007 @@ -633,7 +634,7 @@ SY_CONN_END_THREADS(conn); if (self->debug) - debug_msg("blk_alloc(conn%d, %s, &blk%d) -> %s", + debug_msg("blk_alloc(conn%d, %d, &blk%s) -> %s",

    2007-01-08 22:07:04 UTC in Sybase module for Python

About Me

  • 2001-08-09 (8 years ago)
  • 293157
  • gnbond (My Site)
  • Gregory Bond

Send me a message