Skip to content

Commit

Permalink
Use the correct collation for the new db structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Aug 2, 2023
1 parent 76cfae5 commit 0f9782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/xpath_engine.rb
Expand Up @@ -348,7 +348,7 @@ def find(xpath)

@joins = ['LEFT JOIN repositories AS release_repositories ON binary_releases.repository_id = release_repositories.id',
'LEFT JOIN projects AS release_projects ON release_repositories.db_project_id = release_projects.id',
'LEFT join product_media on (product_media.repository_id=release_repositories.id AND product_media.name=binary_releases.medium COLLATE utf8_unicode_ci)',
'LEFT join product_media on (product_media.repository_id=release_repositories.id AND product_media.name=binary_releases.medium COLLATE utf8mb4_unicode_ci)',
'LEFT join products product_ga on product_ga.id=product_media.product_id ',
'LEFT join product_update_repositories product_update_repository on product_update_repository.repository_id=release_repositories.id',
'LEFT join products product_update on product_update.id=product_update_repository.product_id '] << @joins
Expand Down

0 comments on commit 0f9782b

Please sign in to comment.