Bug #2533 ยป tableCreationSql_semicolon_20140102a.diff
src/Wt/Dbo/Session.C | ||
---|---|---|
#include <vector>
|
||
#include <string>
|
||
#include <boost/lexical_cast.hpp>
|
||
#include <boost/algorithm/string.hpp>
|
||
namespace Wt {
|
||
namespace Dbo {
|
||
... | ... | |
void Session::executeSql(std::stringstream &sql,std::ostream *sout)
|
||
{
|
||
if (sout)
|
||
*sout << sql.str();
|
||
*sout << boost::trim_copy_if(sql.str(), boost::is_any_of(" \n")) << ";\n";
|
||
else
|
||
connection(true)->executeSql(sql.str());
|
||
}
|