Fix a window clause in package-outputs-for-branch
This was leading to the first and last revision datetimes to be wrong.
This commit is contained in:
parent
edcf1c1e8f
commit
b4111af288
1 changed files with 5 additions and 2 deletions
|
|
@ -427,9 +427,12 @@ FROM (
|
||||||
AND last_git_branches.name = $3
|
AND last_git_branches.name = $3
|
||||||
AND package_derivations_by_guix_revision_range.system = $5
|
AND package_derivations_by_guix_revision_range.system = $5
|
||||||
AND package_derivations_by_guix_revision_range.target = $6
|
AND package_derivations_by_guix_revision_range.target = $6
|
||||||
ORDER BY first_datetime ASC, package_version DESC
|
|
||||||
) AS data1
|
) AS data1
|
||||||
WINDOW path_window AS (PARTITION BY path)
|
WINDOW path_window AS (
|
||||||
|
PARTITION BY path
|
||||||
|
ORDER BY first_datetime ASC, package_version DESC
|
||||||
|
RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
|
||||||
|
)
|
||||||
) AS data2
|
) AS data2
|
||||||
LEFT OUTER JOIN builds
|
LEFT OUTER JOIN builds
|
||||||
ON data2.derivation_output_details_set_id =
|
ON data2.derivation_output_details_set_id =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue