fix(postgresql): preserve ALTER COLUMN TYPE clauses - #2
Merged
Conversation
Targeted backport onto Druid 1.2.28 (jumpserver-1.2.28) for JumpServer #16341. - PG ALTER COLUMN ... SET DATA TYPE <type> now parses (was: expect DEFAULT) - PG character data types keep their COLLATE clause on output (alibaba#6573) - PG ALTER COLUMN ... TYPE <type> USING <expr> now parses and round-trips (alibaba#6064) Backported from upstream d42545f (PG SET DATA TYPE / COLLATE, alibaba#6467/alibaba#6573) and 26b856b (PG TYPE ... USING, alibaba#6064); only the PG TYPE/COLLATE/USING hunks were carried over. Updates the postgresql/17.txt golden that encoded the old dropped-COLLATE output. Adds JumpServer16341Test covering all four scenarios. Co-Authored-By: Claude <noreply@anthropic.com>
Internal JumpServer release of the Druid 1.2.28 fork with the PostgreSQL ALTER COLUMN TYPE/COLLATE/USING fix. Chen consumes com.alibaba:druid:1.2.28-jms.1 from the local Maven repository. Co-Authored-By: Claude <noreply@anthropic.com>
Zxc4wonder
marked this pull request as ready for review
August 10, 2026 08:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fix/pg-alter-column-typework into thejmsdevelopment branchALTER COLUMN TYPE,SET DATA TYPE,COLLATE, andUSINGduring parse/output round trips1.2.28-jms.1internal version, publishing workflow, and Maven coordinate updates from the source branchPostgreSQL parser changes
SQLAlterTableAlterColumnwithCOLLATEandUSINGstatePGSQLStatementParserJumpServer16341Testregression coverage and update the PostgreSQL parser resource fixtureCommit range
The source branch is 5 commits ahead of
jmsand 0 commits behind:fix(postgresql): preserve alter column type collate and usingchore: bump version to 1.2.28-jms.1build: publish custom druid packagebuild: update druid parent coordinatesbuild: update internal druid coordinatesThis PR intentionally reflects the complete remote
fix/pg-alter-column-typebranch, including its release/build files.