diff options
Diffstat (limited to 'libodbcpp/bind.h')
-rw-r--r-- | libodbcpp/bind.h | 10 |
1 files changed, 6 insertions, 4 deletions
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 <sql.h> +#include <vector> namespace ODBC { class Command; @@ -19,13 +20,14 @@ namespace ODBC { class Bind { public: virtual ~Bind() {} - t value; + mutable t value; }; + typedef std::vector<char> SQLCHARVEC; template <> - class Bind<unsigned char*> { + class Bind<SQLCHARVEC> { public: - virtual ~Bind(); - unsigned char * value; + virtual ~Bind() {} + mutable SQLCHARVEC value; }; } |