fix db query

This commit is contained in:
Oliver Gorwits
2012-01-18 16:04:34 +00:00
parent b86482fa6c
commit 3fc995060a

View File

@@ -79,7 +79,7 @@ sub by_field {
{ {
order_by => [qw/ me.dns me.ip /], order_by => [qw/ me.dns me.ip /],
join => 'device_ips', join => 'device_ips',
group_by => 'me.ip', distinct => 1,
} }
); );
} }
@@ -110,7 +110,7 @@ sub by_any {
{ {
order_by => [qw/ me.dns me.ip /], order_by => [qw/ me.dns me.ip /],
join => 'device_ips', join => 'device_ips',
group_by => 'me.ip', distinct => 1,
} }
); );
} }