summaryrefslogtreecommitdiff
path: root/libodbcpp/error.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-05-30 23:59:34 +0000
committerrandomdan <randomdan@localhost>2012-05-30 23:59:34 +0000
commit8d304c22ac85ac340c7edb82e1fef7faec9c9cd7 (patch)
treecc1d852c521701636c6be8f4196fbb586c8ae7a6 /libodbcpp/error.cpp
parentA stream interface, an RDBMS bulk load interface, a decompression layer, an i... (diff)
downloadlibdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.tar.bz2
libdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.tar.xz
libdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.zip
Fix printf warnings on 64bit
Diffstat (limited to 'libodbcpp/error.cpp')
-rw-r--r--libodbcpp/error.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libodbcpp/error.cpp b/libodbcpp/error.cpp
index e971714..7707401 100644
--- a/libodbcpp/error.cpp
+++ b/libodbcpp/error.cpp
@@ -20,13 +20,13 @@ odbc_verror(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const *
case SQL_SUCCESS:
case SQL_SUCCESS_WITH_INFO:
if (msg) {
- if (asprintf(msg, "%d: %ld: %5.5s: \"%s\" while attempting to %s",
- err, sqlerr, sqlstatus, sqlerrmsg, action) < 1) {
+ if (asprintf(msg, "%d: %d: %5.5s: \"%s\" while attempting to %s",
+ err, (int)sqlerr, sqlstatus, sqlerrmsg, action) < 1) {
*msg = NULL;
}
}
- syslog(LOG_WARNING, "%s: %d: %ld: %5.5s: \"%s\" while attempting to %s",
- __FUNCTION__, err, sqlerr, sqlstatus, sqlerrmsg, action);
+ syslog(LOG_WARNING, "%s: %d: %d: %5.5s: \"%s\" while attempting to %s",
+ __FUNCTION__, err, (int)sqlerr, sqlstatus, sqlerrmsg, action);
break;
case SQL_INVALID_HANDLE: