forked from lix-project/hydra
qualify id column in queries
This commit is contained in:
parent
436373c165
commit
53c48e4d7d
|
@ -32,7 +32,7 @@ sub getPreviousBuild {
|
||||||
, jobset => $build->jobset->name
|
, jobset => $build->jobset->name
|
||||||
, job => $build->job->name
|
, job => $build->job->name
|
||||||
, 'me.id' => { '<' => $build->id }
|
, 'me.id' => { '<' => $build->id }
|
||||||
}, {rows => 1, order_by => "id DESC"});
|
}, {rows => 1, order_by => "me.id DESC"});
|
||||||
|
|
||||||
return $prevBuild;
|
return $prevBuild;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ sub getNextBuild {
|
||||||
, jobset => $build->jobset->name
|
, jobset => $build->jobset->name
|
||||||
, job => $build->job->name
|
, job => $build->job->name
|
||||||
, 'me.id' => { '>' => $build->id }
|
, 'me.id' => { '>' => $build->id }
|
||||||
}, {rows => 1, order_by => "id ASC"});
|
}, {rows => 1, order_by => "me.id ASC"});
|
||||||
|
|
||||||
return $nextBuild;
|
return $nextBuild;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ sub getPreviousSuccessfulBuild {
|
||||||
, job => $build->job->name
|
, job => $build->job->name
|
||||||
, buildstatus => 0
|
, buildstatus => 0
|
||||||
, 'me.id' => { '<' => $build->id }
|
, 'me.id' => { '<' => $build->id }
|
||||||
}, {rows => 1, order_by => "id DESC"});
|
}, {rows => 1, order_by => "me.id DESC"});
|
||||||
|
|
||||||
return $prevBuild;
|
return $prevBuild;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue