Commit d404f0e
committed
Refactor: split CREATE TABLE and ALTER TABLE grammar into smaller productions
Extract shared helpers reused across both statements:
- ReferentialActionsOnIndex, CheckConstraintSpec, ForeignKeySpec
- AlterExpressionUsingIndex, AlterExpressionConstraintTail
Split monolithic productions into focused sub-productions:
- CreateTableConstraint: constraint dispatch inside CREATE TABLE (...)
- AlterExpressionAddConstraint: CONSTRAINT clause in ALTER TABLE
- AlterExpressionDrop: all DROP variants
- AlterExpressionPartitionOp: partition maintenance operations
CreateTable shrinks from 211 to 86 lines, AlterExpression from 754 to 477.
No changes to Java model classes or public API.
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
Signed-off-by: manticore-projects <andreas@manticore-projects.com>1 parent e7f4532 commit d404f0e
File tree
4 files changed
+487
-421
lines changed- src
- main/jjtree/net/sf/jsqlparser/parser
- test/resources/net/sf/jsqlparser/statement/select/oracle-tests
4 files changed
+487
-421
lines changed
0 commit comments