Add ODBC internal error logging through `SQLGetDiagRec`.
Add ODBC internal error logging through
SQLGetDiagRec.