summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorHeikki Linnakangas2015-07-20 07:19:22 +0000
committerHeikki Linnakangas2015-07-20 07:25:26 +0000
commit13f2db2ffb2fac24fcb57ecc56e030e1145df127 (patch)
tree428e02a4c44059d0e1e5dcf5a3742878d3631367 /src/test
parent9aa663463bbf123e9d38dab88eeaef981fbc6caf (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/modules/test_ddl_deparse/test_ddl_deparse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/modules/test_ddl_deparse/test_ddl_deparse.c b/src/test/modules/test_ddl_deparse/test_ddl_deparse.c
index 44a5cb0277e..a216e422e9f 100644
--- a/src/test/modules/test_ddl_deparse/test_ddl_deparse.c
+++ b/src/test/modules/test_ddl_deparse/test_ddl_deparse.c
@@ -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 =