Hello!
I have a question that maybe someone can answer me... 
When I do like this
"""
db = MySQLdb.connect( host = "localhost", user = "root", passwd = "****" )
cur = db.cursor()
cur.execute( "INSERT INTO `mytest`.`clients` (
`SessionID`,`InitialLogin`,`LastActivity` ) VALUES ( %s, %s, %s )", ( sessID,
timed, timed ) )
"""
the script hangs.. while doing the exact same within IDLE it just runs and
inserts the row as expected even within a function or class

MySQL 5.0.27
Python 2.4
MySQL-python.exe-1.2.1_p2.win32-py2.4
WindowsXP SP2

By the way, using _mysql within the script and the same statement works fine

Hope to get som answers, Have a nice day.
Tommy

_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig

Reply via email to