NULL vs. None and MySQLdb

Geoffrey L. Wright geoff at integritysi.com
Tue Sep 19 02:26:16 CEST 2000


Another in my string of MySQLdb questions:

str(row) seems to return NULL values as None.  Any easy way to have it
return NULL as NULL?

My code looks something like this:

 ---
for row in curOld.fetchall():
        sql = """
                INSERT INTO chugach_email_addresses
                        (POP3, Address, EmailPassword, MailServerName)
                VALUES %s
        """ % str(row)
	
        curNew.execute(sql)
 ---






More information about the Python-list mailing list