mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-09 16:26:30 +00:00
MySQL:
Solaris compilation fixes VS90 project file Makefile few tidy-up code fixes
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
#include <mysql.h>
|
||||
#include "Poco/Data/MySQL/StatementExecutor.h"
|
||||
#include <sstream>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -179,15 +180,9 @@ bool StatementExecutor::fetchColumn(size_t n, MYSQL_BIND *bind)
|
||||
|
||||
if ((res != 0) && (res != MYSQL_NO_DATA))
|
||||
{
|
||||
std::string msg;
|
||||
msg += "mysql_stmt_fetch_column(";
|
||||
|
||||
char buff[30];
|
||||
sprintf(buff, "%d", n);
|
||||
msg += buff;
|
||||
|
||||
msg += ") error";
|
||||
throw StatementException(msg, h, _query);
|
||||
std::ostringstream msg;
|
||||
msg << "mysql_stmt_fetch_column(" << n << ") error";
|
||||
throw StatementException(msg.str(), h, _query);
|
||||
}
|
||||
|
||||
return (res == 0);
|
||||
|
||||
Reference in New Issue
Block a user