1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-02 08:34:44 +00:00

fix for new non-COW std::strings

This commit is contained in:
Oliver Giles
2016-07-23 18:07:33 +03:00
parent c502bdfdc3
commit 7b7de751e3
3 changed files with 12 additions and 8 deletions

View File

@@ -669,9 +669,10 @@ void Laminar::runFinished(Run * r) {
(unsigned char*)&r->log[0], logsize);
zipped.resize(zippedSize);
std::string reason = r->reason();
db->stmt("INSERT INTO builds VALUES(?,?,?,?,?,?,?,?,?,?,?,?)")
.bind(r->name, r->build, node->name, r->queuedAt, r->startedAt, completedAt, int(r->result),
zipped, logsize, r->parentName, r->parentBuild, r->reason())
zipped, logsize, r->parentName, r->parentBuild, reason)
.exec();
// notify clients