Skip to content

Fix serializing iden as a value in ALTER TYPE ... RENAME TO ... statements #924

Merged
tyt2y3 merged 1 commit intoSeaQL:masterfrom
Huliiiiii:alter-type-rename-iden
Jul 29, 2025
Merged

Fix serializing iden as a value in ALTER TYPE ... RENAME TO ... statements #924
tyt2y3 merged 1 commit intoSeaQL:masterfrom
Huliiiiii:alter-type-rename-iden

Conversation

@Huliiiiii
Copy link
Member

@Huliiiiii Huliiiiii commented Jul 28, 2025

PR Info

  • Dependencies:
  • Dependents:

New Features

Bug Fixes

  • Fix serializing iden as a value in ALTER TYPE ... RENAME TO ... statements

Breaking Changes

Changes

@Huliiiiii Huliiiiii changed the title Use prepare_iden in type renaming Fixed serializing iden as a value in ALTER TYPE ... RENAME TO ... statements Jul 28, 2025
@Huliiiiii Huliiiiii changed the title Fixed serializing iden as a value in ALTER TYPE ... RENAME TO ... statements Fix serializing iden as a value in ALTER TYPE ... RENAME TO ... statements Jul 28, 2025
@tyt2y3 tyt2y3 requested a review from Expurple July 29, 2025 09:23
@tyt2y3
Copy link
Member

tyt2y3 commented Jul 29, 2025

sad, I seem to have had RENAME VALUE in mind when I wrote this

ALTER TYPE colors RENAME VALUE 'purple' TO 'mauve';

does this fix break that ?

edit: they're separate parts of the AST, so we're cool

@tyt2y3 tyt2y3 merged commit 9c3e3ea into SeaQL:master Jul 29, 2025
20 checks passed
@tyt2y3
Copy link
Member

tyt2y3 commented Jul 29, 2025

I will backport this

tyt2y3 pushed a commit that referenced this pull request Jul 29, 2025
…tements (#924)

<!--

Thank you for contributing to this project!

If you need any help please feel free to contact us on Discord:
https://discord.com/invite/uCPdDXzbdv
Or, mention our core members by typing `@GitHub_Handle` on any issue /
PR

Add some test cases! It help reviewers to understand the behaviour and
prevent it to be broken in the future.

-->

## PR Info

<!-- mention the related issue -->
- Closes #898

<!-- is this PR depends on other PR? (if applicable) -->
- Dependencies:
  - <!-- PR link -->

<!-- any PR depends on this PR? (if applicable) -->
- Dependents:
  - <!-- PR link -->

## New Features

- [ ] <!-- what are the new features? -->

## Bug Fixes

- [x] Fix serializing iden as a value in `ALTER TYPE ... RENAME TO ...`
statements

## Breaking Changes

- [ ] <!-- any change in behaviour or method signature? is it backward
compatible? -->

## Changes

- [ ] <!-- any other non-breaking changes to the codebase -->
@Huliiiiii Huliiiiii deleted the alter-type-rename-iden branch July 29, 2025 16:52
@github-actions
Copy link

github-actions bot commented Aug 6, 2025

🎉 Released In 0.32.7 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

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.

Invalid PostgreSQL ALTER TYPE ... RENAME TO ... statements

2 participants