From 685587ddb7af3a943a1dd5837fcfeeb779cf15b1 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 30 Aug 2010 17:34:02 +0000 Subject: Remove lots of overkill variations of string stuff and have a vector deal with the memory --- libodbcpp/bind.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libodbcpp/bind.h') diff --git a/libodbcpp/bind.h b/libodbcpp/bind.h index 7dfbf34..5baa53a 100644 --- a/libodbcpp/bind.h +++ b/libodbcpp/bind.h @@ -2,6 +2,7 @@ #define ODBC_BIND_H #include +#include namespace ODBC { class Command; @@ -19,13 +20,14 @@ namespace ODBC { class Bind { public: virtual ~Bind() {} - t value; + mutable t value; }; + typedef std::vector SQLCHARVEC; template <> - class Bind { + class Bind { public: - virtual ~Bind(); - unsigned char * value; + virtual ~Bind() {} + mutable SQLCHARVEC value; }; } -- cgit v1.2.3