Skip to content

Commit

Permalink
use concat function for mysql compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jul 21, 2024
1 parent 9a5d9a2 commit 604160d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gemstash/compact_index_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def compact_index_versions(date)
UNION ALL
SELECT r.name as name, v.yanked_at as date, v.yanked_info_checksum as info_checksum, '-'||v.number as number, v.platform as platform
SELECT r.name as name, v.yanked_at as date, v.yanked_info_checksum as info_checksum, concat('-', v.number) as number, v.platform as platform
FROM rubygems AS r, versions AS v
WHERE v.rubygem_id = r.id AND
v.indexed is false AND
Expand Down

0 comments on commit 604160d

Please sign in to comment.