From 7297648c278903589beebf6fbc7511e5c1ff421d Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 16 Sep 2010 00:01:56 +0000 Subject: 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 --- libodbcpp/command.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libodbcpp/command.h') 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 + ParamType * + makeParam(unsigned int idx); }; } -- cgit v1.2.3