Commits

Marc Fournier  committed bf2abf0

fix: clean up formatting of \d tablename in psql

submitted by: Bruce Momjian (root@candle.pha.pa.us)

  • Participants
  • Parent commits e5eb859

Comments (0)

Files changed (1)

File src/bin/psql/psql.c

  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2 1996/07/16 06:37:28 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3 1996/07/16 06:58:12 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
     */
 
     printf ("\nTable    = %s\n", table);
-    printf ("+----------------------------------+----------------------------------+-------+\n");
-    printf ("|              Field               |              Type                | Length|\n");
-    printf ("+----------------------------------+----------------------------------+-------+\n");
+    printf ("+----------------------------------+----------------------------------+--------+\n");
+    printf ("|              Field               |              Type                | Length |\n");
+    printf ("+----------------------------------+----------------------------------+--------+\n");
 
     /* next, print out the instances */
     for (i=0; i < PQntuples(res); i++) {
 	      free(newname);
 	  }
 	if (rsize > 0) 
-	    printf ("%-6i |", rsize);
+	    printf (" %-6i |", rsize);
 	else
-	    printf ("%-6s |", "var");
+	    printf (" %-6s |", "var");
       }
       printf("\n");
     }
-    printf ("+----------------------------------+----------------------------------+-------+\n");
+    printf ("+----------------------------------+----------------------------------+--------+\n");
 
     PQclear(res);
     return (0);