if Python unicodes are passed under
certain circumstances.
+- oracle
+ - Added ORA-00028 to disconnect codes, use
+ cx_oracle _Error.code to get at the code,
+ [ticket:2200]. Also in 0.6.9.
+
- examples
- Repaired the examples/versioning test runner
to not rely upon SQLAlchemy test libs,
)
def is_disconnect(self, e, connection, cursor):
+ error, = e.args
if isinstance(e, self.dbapi.InterfaceError):
return "not connected" in str(e)
else:
- return "ORA-03114" in str(e) or "ORA-03113" in str(e)
+ # ORA-00028: your session has been killed
+ # ORA-03114: not connected to ORACLE
+ # ORA-03113: end-of-file on communication channel
+ return error.code in (28, 3114, 3113)
def create_xid(self):
"""create a two-phase transaction ID.