Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf2abf0

Browse files
committed
fix: clean up formatting of \d tablename in psql
submitted by: Bruce Momjian (root@candle.pha.pa.us)
1 parente5eb859 commitbf2abf0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/bin/psql/psql.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2 1996/07/16 06:37:28 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.3 1996/07/16 06:58:12 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -321,9 +321,9 @@ tableDesc (PGconn* conn, char* table)
321321
*/
322322

323323
printf ("\nTable = %s\n",table);
324-
printf ("+----------------------------------+----------------------------------+-------+\n");
325-
printf ("| Field | Type | Length|\n");
326-
printf ("+----------------------------------+----------------------------------+-------+\n");
324+
printf ("+----------------------------------+----------------------------------+--------+\n");
325+
printf ("| Field | Type | Length|\n");
326+
printf ("+----------------------------------+----------------------------------+--------+\n");
327327

328328
/* next, print out the instances */
329329
for (i=0;i<PQntuples(res);i++) {
@@ -355,13 +355,13 @@ tableDesc (PGconn* conn, char* table)
355355
free(newname);
356356
}
357357
if (rsize>0)
358-
printf ("%-6i |",rsize);
358+
printf ("%-6i |",rsize);
359359
else
360-
printf ("%-6s |","var");
360+
printf ("%-6s |","var");
361361
}
362362
printf("\n");
363363
}
364-
printf ("+----------------------------------+----------------------------------+-------+\n");
364+
printf ("+----------------------------------+----------------------------------+--------+\n");
365365

366366
PQclear(res);
367367
return (0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp