From 61e82df26176060dbdab6cfe8770ab93a4eaffc0 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 3 Feb 2011 12:45:52 +0000 Subject: Add missing conversion in generic visitor Whole new improved variable system (does drop VariableParse, no longer required) Add option to count, but not include, blank lines in proc and file rows File file rows to open files, not execute them Fix to ODBC API with strings that don't use the whole buffer XML changes to site to use new variable system Changes to GB importer to use FS rows and new SQL merge now that it's a) tested and b) variable parse has gone --- libodbcpp/column.cpp | 2 +- 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 &) = 0; + virtual void string(const std::vector &, size_t len) = 0; virtual void integer(SQLINTEGER) = 0; virtual void floatingpoint(SQLDOUBLE) = 0; virtual void timestamp(const SQL_TIMESTAMP_STRUCT &) = 0; -- cgit v1.2.3