Commit 1a865b83 authored by Bruce Momjian's avatar Bruce Momjian

Change display of char(5) to (bp)char 5 so psql \d can

distinguish between char and char(1).
parent 81f2f819
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.22 1996/10/09 00:15:44 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.23 1996/10/14 00:33:47 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -340,7 +340,7 @@ tableDesc (PsqlSettings *ps, char *table) ...@@ -340,7 +340,7 @@ tableDesc (PsqlSettings *ps, char *table)
printf ("%6s |", "var" ); printf ("%6s |", "var" );
} }
else if (strcmp(rtype, "bpchar") == 0) { else if (strcmp(rtype, "bpchar") == 0) {
printf ("%-32.32s |", "char"); printf ("%-32.32s |", "(bp)char");
printf ("%6i |", rsize > 0 ? rsize - 4 : 0 ); printf ("%6i |", rsize > 0 ? rsize - 4 : 0 );
} }
else if (strcmp(rtype, "varchar") == 0) { else if (strcmp(rtype, "varchar") == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment