diff options
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/selectcommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/selectcommand.cpp b/libodbcpp/selectcommand.cpp index 77e22f4..177a84e 100644 --- a/libodbcpp/selectcommand.cpp +++ b/libodbcpp/selectcommand.cpp @@ -43,7 +43,7 @@ ODBC::SelectCommand::fetch(SQLSMALLINT orientation, SQLLEN offset) return false; default: { - SQLCHAR sqlstatus[5]; + SQLCHAR sqlstatus[6]; RETCODE diagrc = SQLGetDiagRec(SQL_HANDLE_STMT, hStmt, 1, sqlstatus, NULL, NULL, 0, NULL); if (SQL_SUCCEEDED(diagrc)) { if (!strncmp((const char*)sqlstatus, "01004", 5)) { |