Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always quote C collation #1655

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Always quote C collation #1655

merged 2 commits into from
Aug 2, 2021

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Aug 2, 2021

What:

Always quote C collation when creating the vts_verification_str function.

Why:

It seems in contrast to other collations it is always required to quote
the C collation. Otherwise creating the vts_verification_str raises an
error when falling back to the C collation for DB with SQL_ASCII
encoding. At least that's the behavior with Postgres 11 on Debian
Buster.

Closes AP-1619

How did you test it:

Tested on two systems. One with a DB using SQL_ASCII and one with UTF-8 encoding. Manually inserted the SQL for the function and tested the calculated digest.

Checklist:

It seems in contrast to other collations it is always required to quote
the C collation. Otherwise creating the vts_verification_str raises an
error when falling back to the C collation for DB with SQL_ASCII
encoding. At least that's the behavior with Postgres 11 on Debian
Buster.
@bjoernricks bjoernricks added backport-to-main This pull request will be ported to the master branch backport-to-stable This pull request will be backported to the stable branch labels Aug 2, 2021
@bjoernricks bjoernricks marked this pull request as ready for review August 2, 2021 09:35
@bjoernricks bjoernricks requested a review from a team as a code owner August 2, 2021 09:35
@jhelmold jhelmold self-requested a review August 2, 2021 09:49
@bjoernricks bjoernricks merged commit 73295ab into gvmd-20.08 Aug 2, 2021
@bjoernricks bjoernricks deleted the fix-c-collation branch August 2, 2021 09:58
bjoernricks added a commit that referenced this pull request Aug 2, 2021
bjoernricks added a commit that referenced this pull request Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch backport-to-stable This pull request will be backported to the stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants