Skip to content

Conversation

rafiss
Copy link
Contributor

@rafiss rafiss commented Aug 20, 2025

We used to have a regex that removed the first and last single quotes from a comment. There is no information about this decision, nor any related test. This might have been a difference between PostgreSQL and CockroachDB.

Since tests are passing without it, and comments are not quoted, we can remove the regex. Moreover, if a comment would start or end with a single quote, this would remove that quote, which is not desirable.

Fixes #381

We used to have a regex that removed the first and last
single quotes from a comment. There is no information
about this decision, nor any related test. This might
have been a difference between PostgreSQL and CockroachDB.

Since tests are passing without it, and comments are not
quoted, we can remove the regex. Moreover, if a comment would
start or end with a single quote, this would remove that
quote, which is not desirable.

Fixes cockroachdb#381
@rafiss rafiss changed the title fix: do not alter user comments [7-2-stable] fix: do not alter user comments Aug 20, 2025
@rafiss rafiss requested a review from BuonOmo August 20, 2025 18:38
@BuonOmo BuonOmo merged commit f4631e6 into cockroachdb:7-2-stable Aug 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants