mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Handle AT_ReAddComment in test_ddl_deparse, and add a catch-all default.
In the passing, also move AT_ReAddComment to more logical position in the
enum, after all the Constraint-related subcommands.
This fixes a compiler warning, added by commit e42375fc
. Backpatch to 9.5,
like that patch.
This commit is contained in:
@ -151,6 +151,9 @@ get_altertable_subcmdtypes(PG_FUNCTION_ARGS)
|
||||
case AT_DropConstraintRecurse:
|
||||
strtype = "DROP CONSTRAINT (and recurse)";
|
||||
break;
|
||||
case AT_ReAddComment:
|
||||
strtype = "(re) ADD COMMENT";
|
||||
break;
|
||||
case AT_AlterColumnType:
|
||||
strtype = "ALTER COLUMN SET TYPE";
|
||||
break;
|
||||
@ -253,6 +256,8 @@ get_altertable_subcmdtypes(PG_FUNCTION_ARGS)
|
||||
case AT_GenericOptions:
|
||||
strtype = "SET OPTIONS";
|
||||
break;
|
||||
default:
|
||||
strtype = "unrecognized";
|
||||
}
|
||||
|
||||
astate =
|
||||
|
Reference in New Issue
Block a user