From 65faaf30463ec517d0c25aa56a4d3c48a9f8ca83 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 7 Feb 1998 06:11:56 +0000 Subject: atttypmod now -1. --- src/bin/psql/psql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/psql.c') diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 88e39be767..54905c31c7 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.132 1998/02/06 17:46:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.133 1998/02/07 06:11:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -689,7 +689,7 @@ tableDesc(PsqlSettings *pset, char *table, FILE *fout) fprintf(fout,"%6s |", "var"); else if (strcmp(rtype, "bpchar") == 0 || strcmp(rtype, "varchar") == 0) - fprintf(fout,"%6i |", atttypmod > 0 ? atttypmod - VARHDRSZ : 0); + fprintf(fout,"%6i |", atttypmod != -1 ? atttypmod - VARHDRSZ : 0); else { if (attlen > 0) -- cgit v1.2.1