sql: ALTER COLUMN TYPE general for column that has a check constraint not supported. #48288
Labels
A-schema-changes
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Currently, ALTER COLUMN TYPE for a column that has a check constraint is not supported.
Steps to implement:
-pg source code for re-adding constraint
Example:
If the original column constraint was (x > 0),
after a cast to string, the new constraint should be (x > 0::string).
This is postgres behaviour.
Jira issue: CRDB-4338
Epic CRDB-44826
The text was updated successfully, but these errors were encountered: