Work around server_capabilities problem
MySQL database connector for Python programming
Brought to you by:
adustman
There's a common problem (Google finds many
references) to a missing attribute: 'server_capabilities'
when trying to create a ZMySQLDA connection.
As a workaround, edit db.py (in the ZMySQLDA Product)
so that line 183 is replaced with:
if hasattr(self.db,'server_capabilities'): self.transactions =
self.db.server_capabilities & CLIENT.TRANSACTIONS
else:
self.transactions = 0 #in other words, no
transactions.
And yeah, it could use exceptions :)
sourceforge at benlast.com
Logged In: YES
user_id=71372
Already fixed post 0.9.2