[PYTHON DB-SIG] PATCH for Msql 1.0.16 and Python 1.4b3
John Mitchell
johnm@magnet.com
Wed, 23 Oct 1996 13:44:36 -0400 (EDT)
Selecting from a table with NULLs results in a coredump from
Python, command-line msql works fine.
What was happening was that the (antique) msqlmodule was trying to do
newstiringobject(NULL) -- boom!
This will fix it, around line 207:
change:
str=newstringobject(thisrow[i]);
to:
if (!thisrow[i]) {
INCREF(None);
str = None;
} else {
str=newstringobject(thisrow[i]);
}
Is anyone maintaining the msqlmodule.c?
- j
John Mitchell my body .. abused. my mind .. unhinged.
Magnet Interactive my reality .. maintained. I am happy.
johnm@magnet.com -- Too Much Coffee Man
=================
DB-SIG - SIG on Tabular Databases in Python
send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
=================