summaryrefslogtreecommitdiff
path: root/libodbcpp/bind.h
blob: 5baa53a8f15032ddcf73b7be9e0972131f03bd12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef ODBC_BIND_H
#define ODBC_BIND_H

#include <sql.h>
#include <vector>

namespace ODBC {
	class Command;
	class BindBase {
		public:
			BindBase();
			virtual			~BindBase() {}
		protected:
			SQLINTEGER		bindLen;			// Used memory
			friend class Param;
			friend class Column;
			friend class Command;
	};
	template <class t>
	class Bind {
		public:
			virtual			~Bind() {}
			mutable t		value;
	};
	typedef std::vector<char> SQLCHARVEC;
	template <>
	class Bind<SQLCHARVEC> {
		public:
			virtual			~Bind() {}
			mutable SQLCHARVEC	value;
	};
}

#endif