It seems to me, the following does not work:
self.conn.server_capabilities & CLIENT.TRANSACTIONS
Using: self.test = self._conn
showed up test being '_mysql.connection'
while: dir( _mysql.connection ) knows about
server_capabilities dir( self.test ) does not ...
so accessing: self.test.server_capabilities
will result in the following error: Attribute Error:
on the other hand: hurz =
seems to return anything but a value:
member 'server_capabilities' of '_mysql.connection'
... after all "CompatMysqldb" seems to work only, if I
self.__conn.server_capabilities & CLIENT.TRANSACTIONS
by e.g. 1 (I really doubt this is a solution ;-)
I checked "_mysqlmodule.c" and found the
static PyObject * _mysql_ConnectionObject_getattr(
_mysql_ConnectionObject self, char name)
... this looks allright, although the attribute
server_capabilities is not available - this seems like a
bug to me?!?