From 951e67b64812128249f572b60e7ca012bad28bfc Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 21 Sep 2006 23:14:28 +0000 Subject: Fix the C++ template errors Add some half decent transaction support Change the error handling to not 'handle' _with_info --- libodbcpp/param.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libodbcpp/param.cpp') diff --git a/libodbcpp/param.cpp b/libodbcpp/param.cpp index 7657ef4..0e49067 100644 --- a/libodbcpp/param.cpp +++ b/libodbcpp/param.cpp @@ -68,7 +68,7 @@ ODBC::Command::bindParamI(unsigned int i, int val) throw Error("%s: Bind out of bounds", __FUNCTION__); } void -ODBC::Command::bindParamI(unsigned int i, unsigned int val) +ODBC::Command::bindParamI(unsigned int i, long long unsigned int val) { if (i < params.size()) { _Param* p = Param::makeParam(params[i]); @@ -128,6 +128,16 @@ ODBC::Command::bindParamT(unsigned int i, struct tm * val) // Wrappers for all the roughly compatable types +void +ODBC::Command::bindParamI(unsigned int i, long unsigned int val) +{ + bindParamI(i, (long long unsigned int)val); +} +void +ODBC::Command::bindParamI(unsigned int i, unsigned int val) +{ + bindParamI(i, (long long unsigned int)val); +} void ODBC::Command::bindParamS(unsigned int i, String val) { -- cgit v1.2.3