From 97946dad38c6385156bd30a73769f0b4778e3abe Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Larsen Date: Tue, 9 May 2017 21:20:33 +0200 Subject: [PATCH] Order procs by proc_pid --- store/datastore/sql/postgres/files/procs.sql | 1 + store/datastore/sql/postgres/sql_gen.go | 1 + 2 files changed, 2 insertions(+) diff --git a/store/datastore/sql/postgres/files/procs.sql b/store/datastore/sql/postgres/files/procs.sql index 7f336885..3c80b8ac 100644 --- a/store/datastore/sql/postgres/files/procs.sql +++ b/store/datastore/sql/postgres/files/procs.sql @@ -37,6 +37,7 @@ SELECT ,proc_environ FROM procs WHERE proc_build_id = $1 +ORDER BY proc_pid ASC -- name: procs-find-build-pid diff --git a/store/datastore/sql/postgres/sql_gen.go b/store/datastore/sql/postgres/sql_gen.go index 24f37a61..e1476033 100644 --- a/store/datastore/sql/postgres/sql_gen.go +++ b/store/datastore/sql/postgres/sql_gen.go @@ -164,6 +164,7 @@ SELECT ,proc_environ FROM procs WHERE proc_build_id = $1 +ORDER BY proc_pid ASC ` var procsFindBuildPid = `