From 9e664cf8b03f2488767ae7d0d523529b91402b45 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Apr 2015 13:34:00 +0200 Subject: [PATCH] Fix not-null constraint violation inserting build step DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: ERROR: null value in column "machine" violates not-null constraint --- src/script/hydra-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra-build b/src/script/hydra-build index edde6e97..7013c3a4 100755 --- a/src/script/hydra-build +++ b/src/script/hydra-build @@ -210,7 +210,7 @@ sub doBuild { my $now = time; my $stepStartTime = $now; my $stepStopTime = $now; - my $machine = undef; + my $machine = ""; txn_do($db, sub { if ($buildSteps{$drvPathStep}) { my $step = $build->buildsteps->find({stepnr => $buildSteps{$drvPathStep}}) or die;