• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 17603910055

10 Sep 2025 05:13AM UTC coverage: 76.308% (+0.003%) from 76.305%
17603910055

push

github

web-flow
Fix ALTER TABLE ALTER COLUMN NULL/NOT NULL syntax support in Babelfish (#4049)

Description
Today, Babelfish doesn't support T-SQL's ALTER TABLE ALTER COLUMN syntax for modifying column nullability.

Syntax:
ALTER TABLE table_name ALTER COLUMN <column_name> <datatype> NULL
ALTER TABLE table_name ALTER COLUMN <column_name> <datatype> NOT NULL
This PR implements support for the NULL/NOT NULL syntax in ALTER TABLE ALTER COLUMN statements

Changes:
Added grammar rules (opt_null_constraint)to recognize the NULL and NOT NULL modifiers in ALTER COLUMN statements
Uses PostgreSQLs existing AT_SetNotNull and AT_DropNotNull commands to implement the functionality

Issues Resolved BABEL-3966
Signed-off-by: Rahul Parande <rparande@amazon.com>

18 of 22 new or added lines in 1 file covered. (81.82%)

242 existing lines in 2 files now uncovered.

50435 of 66094 relevant lines covered (76.31%)

383329.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.46
/contrib/babelfishpg_tsql/src/tsqlUnsupportedFeatureHandler.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc