I added support in the next ODBC driver version to set the isolation level to *NONE via SQL_ATTR_TXN_ISOLATION, so conceivably we can set this using the set_attr on the connection object. However, Microsoft's ODBC driver manager only allows setting the 4 pre-defined isolation options and will not allow setting the value to 0 for *NONE.
To get around this, I added a new attribute that is an alias of SQL_ATTR_TXN_ISOLATION called CWB_ATTR_TXN_ISOLATION (value 2139). This works exactly the same as the ODBC version, except the driver manager just passes the value through to the driver so we can set it to 0.
This will only work when the driver level is 7.1.24 or higher, so we'll need to do some checking before we use it or pass *NONE through.
I added support in the next ODBC driver version to set the isolation level to *NONE via SQL_ATTR_TXN_ISOLATION, so conceivably we can set this using the set_attr on the connection object. However, Microsoft's ODBC driver manager only allows setting the 4 pre-defined isolation options and will not allow setting the value to 0 for *NONE.
To get around this, I added a new attribute that is an alias of SQL_ATTR_TXN_ISOLATION called CWB_ATTR_TXN_ISOLATION (value 2139). This works exactly the same as the ODBC version, except the driver manager just passes the value through to the driver so we can set it to 0.
This will only work when the driver level is 7.1.24 or higher, so we'll need to do some checking before we use it or pass *NONE through.