]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
mssql+mxodbc should use executedirect for all selects and execute for insert/update...
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Mar 2010 20:47:53 +0000 (14:47 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Mar 2010 20:47:53 +0000 (14:47 -0600)
commitd56d420e809588d8dea8f36fd4ae3a8b4204be54
treeeeeb939cf4beaae903dcebc24073ff26565a0756
parent1a3f424c864d1bbf782db20d0840895c8ae0f35d
mssql+mxodbc should use executedirect for all selects and execute for insert/update/delete. To support this, an is_crud property has been added to the DefaultExecutionContext. The behavior is forcable either way per execution using execution_options(native_odbc_parameters=True|False). Some tests have been added to demonstrate usage. (patch by zzzeek committed by bradallen)
lib/sqlalchemy/connectors/mxodbc.py
lib/sqlalchemy/engine/default.py
test/dialect/test_mssql.py
test/dialect/test_mxodbc.py [new file with mode: 0644]