Skip to content

Commit

Permalink
sqlState was losing the supplied message text
Browse files Browse the repository at this point in the history
  • Loading branch information
toonen committed Mar 7, 2013
1 parent 5776805 commit d38e21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/db2/session.cpp
Expand Up @@ -17,7 +17,7 @@ using namespace soci;
using namespace soci::details;

const std::string db2_soci_error::sqlState(std::string const & msg,const SQLSMALLINT htype,const SQLHANDLE hndl) {
std::stringstream ss(msg);
std::ostringstream ss(msg, std::ostringstream::app);


SQLCHAR message[SQL_MAX_MESSAGE_LENGTH + 1];
Expand Down

0 comments on commit d38e21e

Please sign in to comment.