- Added the missing keywords from MySQL 4.1 so they get escaped
properly.
+- mssql
+ - Modified the do_begin handling in mssql to use the Cursor not
+ the Connection so it is DBAPI compatible.
+
0.5.0
========
return newobj
def do_begin(self, connection):
- connection.execute("SET IMPLICIT_TRANSACTIONS OFF")
- connection.execute("BEGIN TRANSACTION")
+ cursor = connection.cursor()
+ cursor.execute("SET IMPLICIT_TRANSACTIONS OFF")
+ cursor.execute("BEGIN TRANSACTION")
@base.connection_memoize(('dialect', 'default_schema_name'))
def get_default_schema_name(self, connection):
def is_disconnect(self, e):
return isinstance(e, self.dbapi.DatabaseError) and "Error 10054" in str(e)
+ def do_begin(self, connection):
+ pass
+
class MSSQLDialect_pyodbc(MSSQLDialect):
supports_sane_rowcount = False
def is_disconnect(self, e):
return isinstance(e, self.dbapi.adodbapi.DatabaseError) and "'connection failure'" in str(e)
+
dialect_mapping = {
'pymssql': MSSQLDialect_pymssql,
'pyodbc': MSSQLDialect_pyodbc,