void TableWriter::insertRow(const Poco::Data::AbstractBindingVec& vals) { using Poco::Data::SQLite::InvalidSQLStatementException; Poco::Data::Statement stmt = *session_ << strStmt_; for (const auto& val : vals) { stmt.addBind(val); } try { stmt.execute(); } catch (const InvalidSQLStatementException& e) { std::string strMsg(e.message()); strMsg.append(" (" + strStmt_ + ")"); throw InvalidSQLStatementException(strMsg, e.code()); } }