-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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