SQLObject connection/transaction blowing up

paul kölle paul at subsignal.org
Sat Jan 14 17:01:40 EST 2006


jacob.miles at gmail.com wrote:
> I'm trying to connect to a mysql database, with autoCommit and caching
> off, and I'm trying to create a transaction.  Why does this blow up?
As the traceback is telling you, your connectionString is missing the
actual values. Not sure about the cache parameter but:
connectionString =
'mysql://admin@localhost/mc_image_library_dev?autoCommit=1' should work.

cheers
 Paul
> 
>>>> from sqlobject import *
>>>> connectionString = 'mysql://admin@localhost/mc_image_library_dev?cache=&autoCommit='
[snipp]
>     conn.autocommit(self.autoCommit)
> TypeError: an integer is required
> 




More information about the Python-list mailing list