diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c
index b0ad60e7a08c96066de207086e2282e9e5758a52..f467a7f9c908fcf8c7389de6c6f1d797bdac2dbc 100644
--- a/src/interfaces/ecpg/preproc/type.c
+++ b/src/interfaces/ecpg/preproc/type.c
@@ -245,7 +245,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type, const int bra
 	struct variable *var;
 
 	if (type->type != ECPGt_descriptor && type->type != ECPGt_sqlda &&
-		type->type != ECPGt_char_variable &&
+		type->type != ECPGt_char_variable && type->type != ECPGt_const &&
 		brace_level >= 0)
 	{
 		char	   *str;