summaryrefslogtreecommitdiff
path: root/libodbcpp/command.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-09-16 00:01:56 +0000
committerrandomdan <randomdan@localhost>2010-09-16 00:01:56 +0000
commit7297648c278903589beebf6fbc7511e5c1ff421d (patch)
treea2686c7d458aad2c32bcb1ae61cb4e04702fd9d4 /libodbcpp/command.h
parentRemove duplication in ODBC::Connection constructors (diff)
downloadlibdbpp-odbc-7297648c278903589beebf6fbc7511e5c1ff421d.tar.bz2
libdbpp-odbc-7297648c278903589beebf6fbc7511e5c1ff421d.tar.xz
libdbpp-odbc-7297648c278903589beebf6fbc7511e5c1ff421d.zip
Rewrite the whole of parameter and column binding almost from scratch
No more template rubbish, no more messy partial specialisation Add copyless rebind of column to parameter Changes in project2 to suit
Diffstat (limited to 'libodbcpp/command.h')
-rw-r--r--libodbcpp/command.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libodbcpp/command.h b/libodbcpp/command.h
index 830f573..0517afd 100644
--- a/libodbcpp/command.h
+++ b/libodbcpp/command.h
@@ -15,9 +15,10 @@ namespace ODBC {
void bindParamI(unsigned int i, int val);
void bindParamI(unsigned int i, long val);
+ void bindParamI(unsigned int i, long 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);
+ void bindParamI(unsigned int i, unsigned long int val);
+ void bindParamI(unsigned int i, unsigned long long int val);
void bindParamF(unsigned int i, double val);
void bindParamF(unsigned int i, float val);
@@ -30,11 +31,16 @@ namespace ODBC {
const std::string sql;
protected:
- friend class BindBase;
+ friend class Param;
+ friend class Column;
SQLHSTMT hStmt;
const Connection& connection;
private:
Params params;
+
+ template <class ParamType>
+ ParamType *
+ makeParam(unsigned int idx);
};
}