diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-04 19:40:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-04 19:40:35 +0000 |
commit | bd8080fb7fe53d68741207600918fef500aa56d1 (patch) | |
tree | 11e0789659aecc40f7c6d7522762bb2d8b65ff08 /libodbcpp | |
parent | Improve and centralise transaction handling logic (diff) | |
download | libdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.tar.bz2 libdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.tar.xz libdbpp-odbc-bd8080fb7fe53d68741207600918fef500aa56d1.zip |
Fix error message creation in exception
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/odbc-error.cpp | 2 |
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: |