summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-11-23 15:25:58 +0000
committerrandomdan <randomdan@localhost>2010-11-23 15:25:58 +0000
commit9bf5035b4f82875fcf0503f6a885316de9c0a0cb (patch)
treecf0376bdb32cf0a1e0a41cb5fdb0f53e78a64816
parentFix incorrect use of NULL, picked up by new GCC (diff)
downloadlibdbpp-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
-rw-r--r--libodbcpp/column.cpp2
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) {