diff options
-rw-r--r-- | libodbcpp/column.cpp | 2 | ||||
-rw-r--r-- | libodbcpp/column.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp index 8caf9c8..4101b0f 100644 --- a/libodbcpp/column.cpp +++ b/libodbcpp/column.cpp @@ -106,7 +106,7 @@ void ODBC::CharArrayColumn::apply(ODBC::HandleField & h) const { if (isNull()) return h.null(); - h.string(data); + h.string(data, bindLen); } void ODBC::TimeStampColumn::apply(ODBC::HandleField & h) const diff --git a/libodbcpp/column.h b/libodbcpp/column.h index 86d4507..0b2f95f 100644 --- a/libodbcpp/column.h +++ b/libodbcpp/column.h @@ -11,7 +11,7 @@ namespace ODBC { class HandleField { public: virtual void null() = 0; - virtual void string(const std::vector<char> &) = 0; + virtual void string(const std::vector<char> &, size_t len) = 0; virtual void integer(SQLINTEGER) = 0; virtual void floatingpoint(SQLDOUBLE) = 0; virtual void timestamp(const SQL_TIMESTAMP_STRUCT &) = 0; |