|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.179 1999/05/25 16:13:17 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.180 1999/05/26 20:08:06 momjian Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -876,6 +876,10 @@ tableDesc(PsqlSettings *pset, char *table, FILE *fout) |
876 | 876 | elseif (strcmp(rtype,"bpchar")==0|| |
877 | 877 | strcmp(rtype,"varchar")==0) |
878 | 878 | fprintf(fout,"%6i |",atttypmod!=-1 ?atttypmod-VARHDRSZ :0); |
| 879 | +elseif (strcmp(rtype,"numeric")==0) |
| 880 | +fprintf(fout,"%3i.%-2i |", |
| 881 | +((atttypmod-VARHDRSZ) >>16)&0xffff, |
| 882 | +(atttypmod-VARHDRSZ)&0xffff); |
879 | 883 | else |
880 | 884 | { |
881 | 885 | if (attlen>0) |
|