Commit f495b7c0 authored by Gary Wong's avatar Gary Wong

Another missing GROUP BY column.

This one doesn't seem to have bitten us yet, but maybe it could.
parent aee6fce9
......@@ -528,7 +528,7 @@ sub LookupAll($$;$)
"`geni-cm`.geni_slices AS s ON " .
"e.eid_uuid=s.uuid " .
"WHERE n.type='$type' GROUP BY " .
"e.pid, e.eid, n.reserved_pid" :
"e.pid, e.eid, n.reserved_pid, nr.pid" :
"SELECT COUNT(*), e.pid, e.eid, " .
"e.expt_swap_uid, " .
"UNIX_TIMESTAMP( e.expt_swapped ) + " .
......@@ -541,7 +541,7 @@ sub LookupAll($$;$)
"r.pid=e.pid AND r.eid=e.eid LEFT " .
"OUTER JOIN next_reserve AS nr ON " .
"n.node_id=nr.node_id WHERE n.type='$type' " .
"GROUP BY e.pid, e.eid, n.reserved_pid";
"GROUP BY e.pid, e.eid, n.reserved_pid, nr.pid";
my $query_result = DBQueryWarn( $query );
while( my($count, $pid, $eid, $uid, $end, $autoswap, $next_reserve,
......
Markdown is supported
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