[PYTHON DB-SIG] PATCH for Msql 1.0.16 and Python 1.4b3

Greg Stein gstein@microsoft.com
Wed, 23 Oct 1996 12:45:23 -0700


Not sure who maintains it. It should say in a README or a header or
something.

-g

--
Greg Stein, Microsoft Corporation            execfile("disclaimer.py")

>----------
>From: 	John Mitchell[SMTP:johnm@magnet.com]
>Sent: 	Wednesday, October 23, 1996 10:44 AM
>To: 	db-sig@python.org
>Subject: 	[PYTHON DB-SIG] PATCH for Msql 1.0.16 and Python 1.4b3
>
>
>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
>=================
>

=================
DB-SIG  - SIG on Tabular Databases in Python

send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
=================