|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.1 1999/02/24 17:28:58 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.2 1999/03/14 05:23:12 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -502,6 +502,9 @@ NormIndexAttrs(List *attList,/* list of IndexElem's */
|
502 | 502 | /* we just set the type name because that is all we need */
|
503 | 503 | attribute->typename=makeNode(TypeName);
|
504 | 504 | attribute->typename->name=nameout(&((Form_pg_type)GETSTRUCT(tuple))->typname);
|
| 505 | + |
| 506 | +/* we all need the typmod for the char and varchar types. */ |
| 507 | +attribute->typename->typmod=attform->atttypmod; |
505 | 508 | }
|
506 | 509 |
|
507 | 510 | if (attribute->class==NULL)
|
|