MySQLdb Question
David A McInnis
david at dataovation.com
Mon Nov 5 11:03:44 EST 2001
Can anyone tell me why I need to connect twice in order to set
cursorclass=MySQLdb.cursors.DictCursor?
If I try to include this argument the first time, I get an error. The only
way I can get it to work without the error is to recreate the connection
object a second time like this.
db1 = MySQLdb.connect(user = config.user, passwd=config.passwd, host=
config.host, db = "prweb")
db1 = MySQLdb.connect(user = config.user, passwd=config.passwd, host=
config.host, db = "prweb",cursorclass=MySQLdb.cursors.DictCursor)
Thanks,
David McInnis
More information about the Python-list
mailing list