Commit 629f2f0b authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix mysql 5.7 "order by" complaints.

parent 19cc9bd6
......@@ -472,7 +472,7 @@ function ClassicImageList($target)
$results = array();
$query =
"select distinct iv.*,ov.* from images as i ".
"select distinct i.imagename,iv.*,ov.* from images as i ".
"left join image_versions as iv on ".
" iv.imageid=i.imageid and iv.version=i.version ".
"left join os_info_versions as ov on ".
......
......@@ -215,7 +215,7 @@ else {
"g.uid_idx is not null) ";
}
$query =
"select distinct iv.*,ov.* from images as i ".
"select distinct i.imagename,iv.*,ov.* from images as i ".
"left join image_versions as iv on ".
" iv.imageid=i.imageid and iv.version=i.version ".
"left join os_info_versions as ov on ".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment