From 9bf5035b4f82875fcf0503f6a885316de9c0a0cb Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 23 Nov 2010 15:25:58 +0000 Subject: Fix edge case when buffer is exactly the size of the column data --- libodbcpp/column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3