diff options
author | randomdan <randomdan@localhost> | 2010-11-23 15:25:58 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-11-23 15:25:58 +0000 |
commit | 9bf5035b4f82875fcf0503f6a885316de9c0a0cb (patch) | |
tree | cf0376bdb32cf0a1e0a41cb5fdb0f53e78a64816 /libodbcpp/column.cpp | |
parent | Fix incorrect use of NULL, picked up by new GCC (diff) | |
download | libdbpp-odbc-9bf5035b4f82875fcf0503f6a885316de9c0a0cb.tar.bz2 libdbpp-odbc-9bf5035b4f82875fcf0503f6a885316de9c0a0cb.tar.xz libdbpp-odbc-9bf5035b4f82875fcf0503f6a885316de9c0a0cb.zip |
Fix edge case when buffer is exactly the size of the column data
Diffstat (limited to 'libodbcpp/column.cpp')
-rw-r--r-- | libodbcpp/column.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp index 73bb727..5ec1e04 100644 --- a/libodbcpp/column.cpp +++ b/libodbcpp/column.cpp @@ -28,7 +28,7 @@ ODBC::Column::resize(SQLHANDLE hStmt) void ODBC::CharArrayColumn::resize(SQLHANDLE hStmt) { - if (bindLen > SQLLEN(data.size())) { + if (bindLen >= SQLLEN(data.size())) { data.resize(bindLen + 1); Column::bind(); if (paramCmd) { |