summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-03 12:45:52 +0000
committerrandomdan <randomdan@localhost>2011-02-03 12:45:52 +0000
commit61e82df26176060dbdab6cfe8770ab93a4eaffc0 (patch)
treec5fc962fd7d974cb2e40c4f19f813e04c3c60a08 /libodbcpp
parentRemove compose functions on column data and add a handle function for type sa... (diff)
downloadlibdbpp-odbc-61e82df26176060dbdab6cfe8770ab93a4eaffc0.tar.bz2
libdbpp-odbc-61e82df26176060dbdab6cfe8770ab93a4eaffc0.tar.xz
libdbpp-odbc-61e82df26176060dbdab6cfe8770ab93a4eaffc0.zip
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
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/column.cpp2
-rw-r--r--libodbcpp/column.h2
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;