Skip to content

cast: remove invalid casts for REFCURSOR#111884

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
DrewKimball:refcursor2
Oct 6, 2023
Merged

cast: remove invalid casts for REFCURSOR#111884
craig[bot] merged 1 commit intocockroachdb:masterfrom
DrewKimball:refcursor2

Conversation

@DrewKimball
Copy link
Copy Markdown
Collaborator

@DrewKimball DrewKimball commented Oct 5, 2023

cast: remove invalid casts for REFCURSOR

The initial implementation for the REFCURSOR data type included
assignment casts from and explicit casts to every other type. In postgres,
REFCURSOR has only the following valid casts:

  1. Explicit casts from each string type.
  2. Assignment casts to each string type.

This patch aligns the casts for REFCURSOR with those of postgres, and
adds according tests.

Informs #111560

Release note: None

@DrewKimball DrewKimball requested review from a team and mgartner October 5, 2023 23:37
@DrewKimball DrewKimball requested a review from a team as a code owner October 5, 2023 23:37
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@DrewKimball DrewKimball removed the request for review from a team October 5, 2023 23:38
@DrewKimball
Copy link
Copy Markdown
Collaborator Author

Sorry for the force-pushes; the commit message was a bit mangled.

@DrewKimball
Copy link
Copy Markdown
Collaborator Author

Hold off on this one for now; I think REFCURSOR needs its own type family.

Copy link
Copy Markdown
Contributor

@mgartner mgartner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball)

@DrewKimball
Copy link
Copy Markdown
Collaborator Author

TFTR!

The initial implementation for the `REFCURSOR` data type included
assignment casts from and explicit casts to every other type. In postgres,
`REFCURSOR` has only the following valid casts:
1. Explicit casts from each string type.
2. Assignment casts to each string type.

This patch aligns the casts for `REFCURSOR` with those of postgres, and
adds according tests.

Informs cockroachdb#111560

Release note: None
@DrewKimball
Copy link
Copy Markdown
Collaborator Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 6, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 6, 2023

Build succeeded:

@craig craig bot merged commit 7437e29 into cockroachdb:master Oct 6, 2023
@DrewKimball DrewKimball deleted the refcursor2 branch October 7, 2023 00:05
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.

3 participants