Actually, I can't make autoCommit work properly with Turbogears and
MySQLdb, but I think the blame lies within SQLObject. If I add
autoCommit=0 to the database URI, SQLObject ultimately tries to pass
'0' to MySQLdb, i.e. there's no attempt to turn the value into an
integer. This results in a TypeError, since the the
connection.autocommit() method needs an integer (boolean types work
too). I notice that the sybase handling code applies int() to the
value, but this doesn't seem to happen for other databases.

I'll file a bug if there's some consensus that this is a SQLObject
issue and not a Turbogears issue. SQLObject seems to be where URI
parsing occurs.

Reply via email to