Closed GoogleCodeExporter closed 8 years ago
ODBC defaults to autocommit *on*, so if you want to disable pyodbc from making
this call to the driver then explicitly set autocommit=True
Original comment by lukedell...@gmail.com
on 16 Mar 2011 at 5:58
Thanks, that did it.
I find it relatively unintuitive to have to specify autocommit=True to actually
turn off autocommitting. Could the documentation be updated?
Original comment by Wurm...@gmail.com
on 16 Mar 2011 at 2:44
Oh no autocommit=True turns *on* autocommitting as you would hope.
The key to understanding your initial problem is that ODBC defaults to
autocommit enabled, whereas pyodbc must default to autocommit disabled (by
decree of the Python Database API, PEP 249). This means that by default pyodbc
must explicitly call the ODBC API to disable autocommit. It is this call which
is failing for your Lotus Notes driver. Specifying autocommit=True means that
pyodbc can skip making this call.
Original comment by lukedell...@gmail.com
on 21 Mar 2011 at 10:59
Well, I guess this problem is then very specific to my case. I suppose there
are not many SQL drivers out there not supporting SQL_ATTR_AUTOCOMMIT.
Probably violates the ODBC standard, but hey, the driver is mapping a non-SQL
database format (Notes Storage Format, NSF) to SQL.
Original comment by Wurm...@gmail.com
on 21 Mar 2011 at 11:47
Luke, thanks again!
Original comment by mkleehammer
on 27 Dec 2011 at 1:05
Original issue reported on code.google.com by
Wurm...@gmail.com
on 10 Mar 2011 at 9:57