summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-error.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-01-04 19:40:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-01-04 19:40:35 +0000
commitbd8080fb7fe53d68741207600918fef500aa56d1 (patch)
tree11e0789659aecc40f7c6d7522762bb2d8b65ff08 /libodbcpp/odbc-error.cpp
parentImprove and centralise transaction handling logic (diff)
downloadlibdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.tar.bz2
libdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.tar.xz
libdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.zip
Fix error message creation in exception
Diffstat (limited to 'libodbcpp/odbc-error.cpp')
-rw-r--r--libodbcpp/odbc-error.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/odbc-error.cpp b/libodbcpp/odbc-error.cpp
index aa22c2b..db677db 100644
--- a/libodbcpp/odbc-error.cpp
+++ b/libodbcpp/odbc-error.cpp
@@ -11,7 +11,7 @@ ODBC::Error::Error(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle)
switch (rc) {
case SQL_SUCCESS:
case SQL_SUCCESS_WITH_INFO:
- msg = stringbf(msg, "%d: %d: %5.5s: \"%s\"", err, (int)sqlerr, sqlstatus, sqlerrmsg);
+ msg = stringbf("%d: %d: %5.5s: \"%s\"", err, (int)sqlerr, sqlstatus, sqlerrmsg);
break;
case SQL_INVALID_HANDLE: