Skip to content

Commit

Permalink
bugfix: fixed pgsql name field ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Mar 20, 2018
1 parent 3ac5686 commit 36673f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/lms-cutoff
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ my $dbq = $dbase->prepare("
JOIN cash ON customers.id = cash.customerid
LEFT JOIN documents ON cash.docid=documents.id
WHERE $filter
GROUP BY customers.id, lastname, name
GROUP BY customers.id, lastname, customers.name
HAVING SUM(cash.value) < $limit
ORDER BY lastname, name
ORDER BY lastname, customers.name
");

$dbq->execute();
Expand Down

0 comments on commit 36673f0

Please sign in to comment.