hdbc / hdbc-odbc

ODBC driver for HDBC
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

Fix #14 #40

Open mpilgrem opened 5 years ago

mpilgrem commented 5 years ago

@derrickturk has identified (https://github.com/derrickturk/hdbc-odbc/commit/99cbefb16defc9ce6de77c1434207a78b5c3c365) that, in the case of the MS Access ODBC driver, the BufferLength argument of ODBC API function SQLGetInfo cannot be ignored (that is, set to 0), despite what is implied by the Microsoft API documentation (https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgetinfo-function?view=sql-server-2017).

InfoType SQL_TXN_CAPABLE returns a SQLUSMALLINT value and the BufferLength must be set accordingly.