Bug report: crash in ct_param when called with a datafmt object in debug mode
"Sébastien Sablé" <[email protected]> Tue, 9 May 2006 11:33:12 +0200
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Message-ID | <[email protected]> |
Hi,
there is a small bug in cmd.c which generates a core dump when
ct_param is called with a datafmt object in debug mode.
Here is a patch to correct this trivial problem:
diff -ru original/sybase-0.37/cmd.c sybase-0.37-ssa/cmd.c
--- original/sybase-0.37/cmd.c 2005-03-21 06:13:55.000000000 +0100
+++ sybase-0.37-ssa/cmd.c 2006-05-09 11:23:35.000000000 +0200
@@ -788,7 +788,7 @@
SY_CONN_END_THREADS(self->conn);
if (self->debug) {
- debug_msg("ct_param(cmd%s, &fmt=", self->serial);
+ debug_msg("ct_param(cmd%d, &fmt=", self->serial);
datafmt_debug(&datafmt->fmt);
debug_msg(", NULL, CS_UNUSED, CS_UNUSED) -> %s\n",
value_str(VAL_STATUS, status));
regards
--
Sébastien Sablé