diff options
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/column.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp index 9ed6143..828b4bc 100644 --- a/libodbcpp/column.cpp +++ b/libodbcpp/column.cpp @@ -28,15 +28,12 @@ ODBC::Column::resize(SQLHANDLE hStmt) void ODBC::CharArrayColumn::resize(SQLHANDLE hStmt) { - const char * addr = &data.front(); if (bindLen > SQLLEN(data.size())) { data.resize(bindLen + 1); - if (addr != &data.front()) { - Column::bind(); - if (paramCmd) { - paramBound = false; - Param::bind(); - } + Column::bind(); + if (paramCmd) { + paramBound = false; + Param::bind(); } } } |