summaryrefslogtreecommitdiff
path: root/libodbcpp/param.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2006-09-21 23:14:28 +0000
committerrandomdan <randomdan@localhost>2006-09-21 23:14:28 +0000
commit951e67b64812128249f572b60e7ca012bad28bfc (patch)
tree85b64c53883077e9ec11fe442ba60ee76d1a5431 /libodbcpp/param.cpp
parentlibcodbcpp initial release (diff)
downloadlibdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.tar.bz2
libdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.tar.xz
libdbpp-odbc-951e67b64812128249f572b60e7ca012bad28bfc.zip
Fix the C++ template errors
Add some half decent transaction support Change the error handling to not 'handle' _with_info
Diffstat (limited to 'libodbcpp/param.cpp')
-rw-r--r--libodbcpp/param.cpp12
1 files changed, 11 insertions, 1 deletions
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<SQLUINTEGER>* p = Param::makeParam<SQLUINTEGER>(params[i]);
@@ -129,6 +129,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)
{
bindParamS(i, val.c_str(), val.size());