Skip to content

Conversation

@mgartner
Copy link
Collaborator

@mgartner mgartner commented Oct 29, 2025

Fixes #156479

Release note (bug fix): A bug has been fix with the ltree2text
built-in function in which the returned TEXT value was incorrectly
wrapped with single quotes. This bug has been present since the
ltree2text built-in was introduced in v25.4.0.

@mgartner mgartner requested review from a team and michae2 and removed request for a team October 29, 2025 19:27
@mgartner mgartner requested a review from a team as a code owner October 29, 2025 19:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner mgartner requested a review from mw5h October 29, 2025 19:27
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Nice finds! :lgtm:

@yuzefovich reviewed 2 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @michae2 and @mw5h)

Copy link
Contributor

@mw5h mw5h left a comment

Choose a reason for hiding this comment

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

In theory this seems fine, but testing seems to disagree. Let's see what's going on there before we decide if this is a good idea.

Fixes cockroachdb#156479

Release note (bug fix): A bug has been fix with the `ltree2text`
built-in function in which the returned `TEXT` value was incorrectly
wrapped with single quotes. This bug has been present since the
`ltree2text` built-in was introduced in v25.4.0.
@mgartner mgartner force-pushed the 156479-ltree2text-fix branch 2 times, most recently from 459bce1 to 7d1a619 Compare October 30, 2025 17:50
@mgartner
Copy link
Collaborator Author

In theory this seems fine, but testing seems to disagree. Let's see what's going on there before we decide if this is a good idea.

The second commit was causing problems, so I've backed it out.

@mgartner
Copy link
Collaborator Author

TFTRs!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 30, 2025

@craig craig bot merged commit 4d4d324 into cockroachdb:master Oct 30, 2025
42 of 44 checks passed
@mgartner mgartner deleted the 156479-ltree2text-fix branch October 31, 2025 13:45
@mgartner mgartner added the backport-25.4.x Flags PRs that need to be backported to 25.4 label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-25.4.x Flags PRs that need to be backported to 25.4 target-release-26.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: ltree2text produces incorrect result

4 participants