Another MySQLdb Q

Victor Subervi victorsubervi at
Wed Feb 16 14:58:05 EST 2011

I have this code:
  db = MySQLdb.connect(host, user, passwd, db)
  cursor= db.cursor()
  cursor.execute(sql, id)

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list