Another MySQLdb Q
Victor Subervi
victorsubervi at gmail.com
Wed Feb 16 14:58:05 EST 2011
Hi;
I have this code:
db = MySQLdb.connect(host, user, passwd, db)
cursor= db.cursor()
cursor.execute(sql, id)
db.commit()
It throws no errors and gives every indication that it executes the command.
I've printed out the command and the id and executed it successfully in
mysql...but not in python from the script. Everything else works in MySQLdb.
What could be the problem?
TIA,
Beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110216/be3077ae/attachment.html>
More information about the Python-list
mailing list