]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Now using pyodbc execution context once again (to pass the test involving insert...
authorBrad Allen <bradallen137@gmail.com>
Thu, 11 Mar 2010 22:30:49 +0000 (16:30 -0600)
committerBrad Allen <bradallen137@gmail.com>
Thu, 11 Mar 2010 22:30:49 +0000 (16:30 -0600)
lib/sqlalchemy/dialects/mssql/mxodbc.py

index b43831046c289978594bddf3c0a8253c1c2bba19..bf14601b871c68d454b941564290292e1ba5f81e 100644 (file)
@@ -7,8 +7,15 @@ from sqlalchemy.dialects.mssql.pyodbc import MSExecutionContext_pyodbc
 from sqlalchemy.dialects.mssql.base import MSExecutionContext, MSDialect
 
 
-class MSExecutionContext_mxodbc(MSExecutionContext):
-    pass
+class MSExecutionContext_mxodbc(MSExecutionContext_pyodbc):
+    """
+    The pyodbc execution context is useful for enabling
+    SELECT SCOPE_IDENTITY in cases where OUTPUT clause
+    does not work (tables with insert triggers).
+    """
+    #todo - investigate whether the pyodbc execution context
+    #       is really only being used in cases where OUTPUT
+    #       won't work.
 
 class MSDialect_mxodbc(MxODBCConnector, MSDialect):