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

Commit3d8820a

Browse files
committed
Remove un-needed quotes from psql \d DEFAULT display.
1 parent69cf5ab commit3d8820a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/bin/psql/psql.c

Lines changed: 2 additions & 4 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.123 1998/01/0502:21:22 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.124 1998/01/0513:56:05 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -645,11 +645,9 @@ tableDesc(PsqlSettings *pset, char *table, FILE *fout)
645645
strcat(descbuf,PQgetvalue(res,i,0));
646646
if (!(res2=PSQLexec(pset,descbuf)))
647647
return-1;
648-
strcat(type_str," default'");
648+
strcat(type_str," default ");
649649
strncat(type_str,PQgetvalue(res2,0,0),32-strlen(type_str));
650650
type_str[32]='\0';
651-
strncat(type_str,"'",32-strlen(type_str));
652-
type_str[32]='\0';
653651
}
654652
fprintf(fout,"%-32.32s |",type_str);
655653

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp