summaryrefslogtreecommitdiff
path: root/libodbcpp/command.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-04-02 01:05:25 +0000
committerrandomdan <randomdan@localhost>2010-04-02 01:05:25 +0000
commit1ede41e012f7363a0d2804e70be0f6c772997e82 (patch)
tree86671e425d8f66fa16ce1989dbdc4fac45853295 /libodbcpp/command.h
parentLots of little fixes (diff)
downloadlibdbpp-odbc-1ede41e012f7363a0d2804e70be0f6c772997e82.tar.bz2
libdbpp-odbc-1ede41e012f7363a0d2804e70be0f6c772997e82.tar.xz
libdbpp-odbc-1ede41e012f7363a0d2804e70be0f6c772997e82.zip
lots of gcc warning fixes and a few newbies
Diffstat (limited to 'libodbcpp/command.h')
-rw-r--r--libodbcpp/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libodbcpp/command.h b/libodbcpp/command.h
index 55e6703..9da291c 100644
--- a/libodbcpp/command.h
+++ b/libodbcpp/command.h
@@ -14,6 +14,7 @@ namespace ODBC {
virtual ~Command() = 0;
void bindParamI(unsigned int i, int val);
+ void bindParamI(unsigned int i, long val);
void bindParamI(unsigned int i, unsigned int val);
void bindParamI(unsigned int i, long unsigned int val);
void bindParamI(unsigned int i, long long unsigned int val);
@@ -26,9 +27,11 @@ namespace ODBC {
void bindParamS(unsigned int i, String);
void bindParamT(unsigned int i, struct tm *);
void bindParamT(unsigned int i, time_t);
+ void bindParamT(unsigned int i, const TimeTypePair & p) { bindParamT(i, p.c()); }
const String sql;
protected:
+ friend class BindBase;
SQLHSTMT hStmt;
const Connection& connection;
private: