summaryrefslogtreecommitdiff
path: root/libodbcpp/selectcommand.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-09-16 19:51:21 +0000
committerrandomdan <randomdan@localhost>2010-09-16 19:51:21 +0000
commitf164d81c6a09bdb09f16ffcc6c05c2be5233eb5c (patch)
treef26aa7ba99adba05e240afc842b4fbe70a38910e /libodbcpp/selectcommand.cpp
parentAlways rebind after a column alloc size change else ODBC doesn't know about t... (diff)
downloadlibdbpp-odbc-f164d81c6a09bdb09f16ffcc6c05c2be5233eb5c.tar.bz2
libdbpp-odbc-f164d81c6a09bdb09f16ffcc6c05c2be5233eb5c.tar.xz
libdbpp-odbc-f164d81c6a09bdb09f16ffcc6c05c2be5233eb5c.zip
Correct size of sqlstatus buffer
Diffstat (limited to 'libodbcpp/selectcommand.cpp')
-rw-r--r--libodbcpp/selectcommand.cpp2
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)) {