Update libpqxx usage to move away from deprecated API interactions.
This commit is contained in:
@ -424,13 +424,13 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
|
||||
for (auto & build2 : indirect) {
|
||||
if (build2->finishedInDB) continue;
|
||||
printMsg(lvlError, format("marking build %1% as failed") % build2->id);
|
||||
txn.parameterized
|
||||
("update Builds set finished = 1, buildStatus = $2, startTime = $3, stopTime = $4, isCachedBuild = $5, notificationPendingSince = $4 where id = $1 and finished = 0")
|
||||
(build2->id)
|
||||
((int) (build2->drvPath != step->drvPath && result.buildStatus() == bsFailed ? bsDepFailed : result.buildStatus()))
|
||||
(result.startTime)
|
||||
(result.stopTime)
|
||||
(result.stepStatus == bsCachedFailure ? 1 : 0).exec();
|
||||
txn.exec_params0
|
||||
("update Builds set finished = 1, buildStatus = $2, startTime = $3, stopTime = $4, isCachedBuild = $5, notificationPendingSince = $4 where id = $1 and finished = 0",
|
||||
build2->id,
|
||||
(int) (build2->drvPath != step->drvPath && result.buildStatus() == bsFailed ? bsDepFailed : result.buildStatus()),
|
||||
result.startTime,
|
||||
result.stopTime,
|
||||
result.stepStatus == bsCachedFailure ? 1 : 0);
|
||||
nrBuildsDone++;
|
||||
}
|
||||
|
||||
@ -438,7 +438,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
|
||||
won't be built again. */
|
||||
if (result.stepStatus != bsCachedFailure && result.canCache)
|
||||
for (auto & path : step->drv.outputPaths())
|
||||
txn.parameterized("insert into FailedPaths values ($1)")(path).exec();
|
||||
txn.exec_params0("insert into FailedPaths values ($1)", path);
|
||||
|
||||
txn.commit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user