Fix for:
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
$query = '
SELECT count(*)
FROM creator_templates
- ORDER BY rows DESC
';
$count = $dbh->selectrow_array($query);
is( $count, 2, 'There are 2 templates' );
$query = '
SELECT count(*)
FROM creator_layouts
- ORDER BY font_size DESC
';
$count = $dbh->selectrow_array($query);
is( $count, 2, 'There are layout matching' );