From 8ac13fa7d40f53b1e19e7015aed79e7038da1c3d Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Fri, 24 Nov 2023 20:46:58 +0000 Subject: [PATCH] do not use 'DISTINCT' when a 'GROUP BY' is present (DBIx::Class dies) --- Changes | 6 ++++++ lib/App/Netdisco/DB/ResultSet/Device.pm | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 4ae56734..fcbb2a8c 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.070003 - 2023-11-24 + + [BUG FIXES] + + * do not use 'DISTINCT' when a 'GROUP BY' is present (DBIx::Class dies) + 2.070002 - 2023-11-21 [ENHANCEMENTS] diff --git a/lib/App/Netdisco/DB/ResultSet/Device.pm b/lib/App/Netdisco/DB/ResultSet/Device.pm index bac9e968..18673753 100644 --- a/lib/App/Netdisco/DB/ResultSet/Device.pm +++ b/lib/App/Netdisco/DB/ResultSet/Device.pm @@ -155,7 +155,6 @@ sub search_aliases { order_by => [{ -desc => 'in_device' }, { -asc => [qw/ me.dns me.ip /] } ], group_by => ['me.ip'], join => 'device_ips', - distinct => 1, } ); }