summaryrefslogtreecommitdiff
path: root/libodbcpp/bind.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-08-30 17:34:02 +0000
committerrandomdan <randomdan@localhost>2010-08-30 17:34:02 +0000
commit685587ddb7af3a943a1dd5837fcfeeb779cf15b1 (patch)
treea376a877feb1b1689481655844648a20a884d4f8 /libodbcpp/bind.h
parentFix early assign of insCmd in sqlmerge (diff)
downloadlibdbpp-odbc-685587ddb7af3a943a1dd5837fcfeeb779cf15b1.tar.bz2
libdbpp-odbc-685587ddb7af3a943a1dd5837fcfeeb779cf15b1.tar.xz
libdbpp-odbc-685587ddb7af3a943a1dd5837fcfeeb779cf15b1.zip
Remove lots of overkill variations of string stuff and have a vector<char> deal with the memory
Diffstat (limited to 'libodbcpp/bind.h')
-rw-r--r--libodbcpp/bind.h10
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;
};
}