Project

General

Profile

Bug #2533 ยป tableCreationSql_semicolon_20140102a.diff

Bruce Toll, 01/03/2014 12:32 AM

View differences:

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());
}
    (1-1/1)