From 7e3abadb0226a3bb0b9eef60bd5120171da6e9f0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 20 Apr 2018 11:42:15 +0200 Subject: buildmaster/build-list.php: fix style in some queries --- buildmaster/build-list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'buildmaster/build-list.php') diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index b1aa94e..0b6912e 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -28,8 +28,8 @@ $result = mysql_run_query( "`upstream_repositories`.`name` AS `package_repository`," . "`git_repositories`.`name` AS `git_repository`," . "`architectures`.`name` AS `arch`," . - "EXISTS (SELECT * " . - "FROM `binary_packages` `broken_bin` " . + "EXISTS (SELECT 1 " . + "FROM `binary_packages` AS `broken_bin` " . "JOIN `dependencies` ON `dependencies`.`dependent` = `broken_bin`.`id` " . "JOIN `install_target_providers` ON `install_target_providers`.`install_target` = `dependencies`.`depending_on` " . "JOIN `binary_packages` `to_be_built` ON `to_be_built`.`id` = `install_target_providers`.`package` " . @@ -38,7 +38,7 @@ $result = mysql_run_query( "AND `repositories`.`name`=\"build-list\" " . "AND `to_be_built`.`build_assignment`!=`build_assignments`.`id`" . ") AS `dependencies_pending`," . - "(SELECT count(*) " . + "(SELECT count(1) " . "FROM `build_dependency_loops` " . "WHERE `build_dependency_loops`.`build_assignment`=`build_assignments`.`id`" . ") AS `loops`, " . -- cgit v1.2.3-70-g09d2