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

PG16 - Add rules option to CREATE COLLATION #7185

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

naisila
Copy link
Member

@naisila naisila commented Sep 6, 2023

Relevant PG commit:
postgres/postgres@30a53b7
30a53b7

#7138

@naisila naisila changed the title Adds rules option to CREATE COLLATION PG16 - Add rules option to CREATE COLLATION Sep 6, 2023
@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Merging #7185 (d55f583) into main (2df8804) will decrease coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #7185      +/-   ##
==========================================
- Coverage   93.19%   93.18%   -0.02%     
==========================================
  Files         274      274              
  Lines       59322    59327       +5     
==========================================
- Hits        55288    55285       -3     
- Misses       4034     4042       +8     

{
collicurules = TextDatumGetCString(datum);
appendStringInfo(&collationNameDef, ", rules = %s",
quote_literal_cstr(collicurules));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only thing that I'm not very sure is quote_literal_cstr. Is our test dealing with a rule that have escape chars?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't quite understand your question - do we need another quote function here?
collicurules should be quoted as part of the sql syntax.

@naisila naisila merged commit 8894c76 into main Sep 7, 2023
110 checks passed
@naisila naisila deleted the naisila/pg16_collation_rules branch September 7, 2023 10:50
francisjodi pushed a commit that referenced this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants