Skip to content

Commit

Permalink
stores: fix only_full_group_by
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Sep 16, 2024
1 parent 2ad292b commit dc8f9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stores/sql/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2835,7 +2835,7 @@ func listObjectsSlashDelim(ctx context.Context, tx Tx, bucket, prefix, sortBy, s
INNER JOIN buckets b ON o.db_bucket_id = b.id
INNER JOIN directories d ON SUBSTR(o.object_id, 1, %s(d.name)) = d.name
WHERE %s
GROUP BY d.id
GROUP BY d.id, o.db_bucket_id
`, col, strings.Join(markerExprsObj, " AND "), groupFn, col, tx.CharLengthExpr(), strings.Join(markerExprsDir, " AND ")), append(markerArgsObj, markerArgsDir...)...).Scan(dst)
if errors.Is(err, dsql.ErrNoRows) {
return api.ErrMarkerNotFound
Expand Down Expand Up @@ -2886,7 +2886,7 @@ func listObjectsSlashDelim(ctx context.Context, tx Tx, bucket, prefix, sortBy, s
FROM objects o
INNER JOIN directories d ON SUBSTR(o.object_id, 1, %s(d.name)) = d.name %s
WHERE o.object_id LIKE ? AND SUBSTR(o.object_id, 1, ?) = ? AND d.db_parent_id = ?
GROUP BY d.id
GROUP BY d.id, o.db_bucket_id
) AS o
INNER JOIN buckets b ON b.id = o.db_bucket_id
%s
Expand Down

0 comments on commit dc8f9b9

Please sign in to comment.