File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $PostgreSQL: pgsql/src/backend/catalog/pg_enum.c,v 1.4 2008/01/01 19:45:48 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/backend/catalog/pg_enum.c,v 1.5 2008/01/20 17:50:41 alvherre Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -83,14 +83,12 @@ EnumValuesCreate(Oid enumTypeOid, List *vals)
83
83
* labels are stored in a name field, for easier syscache lookup, so
84
84
* check the length to make sure it's within range.
85
85
*/
86
-
87
86
if (strlen (lab ) > (NAMEDATALEN - 1 ))
88
87
ereport (ERROR ,
89
88
(errcode (ERRCODE_INVALID_NAME ),
90
- errmsg ("invalid enum label \"%s\", must be %d characters or less" ,
91
- lab ,
92
- NAMEDATALEN - 1 )));
93
-
89
+ errmsg ("invalid enum label \"%s\"" , lab ),
90
+ errdetail ("Labels must be %d characters or less." ,
91
+ NAMEDATALEN - 1 )));
94
92
95
93
values [Anum_pg_enum_enumtypid - 1 ] = ObjectIdGetDatum (enumTypeOid );
96
94
namestrcpy (& enumlabel , lab );
You can’t perform that action at this time.
0 commit comments