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

Commit8ade58a

Browse files
committed
psql: Improve expanded print output in tuples-only mode
When there are zero result rows, in expanded mode, "(No rows)" isprinted. So far, there was no way to turn this off. Now, whentuples-only mode is turned on, nothing is printed in this case.
1 parentc61e26e commit8ade58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/psql/print.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,8 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
11691169
if (cont->cells[0]==NULL&&cont->opt->start_table&&
11701170
cont->opt->stop_table)
11711171
{
1172-
fprintf(fout,_("(No rows)\n"));
1172+
if (!opt_tuples_only)
1173+
fprintf(fout,_("(No rows)\n"));
11731174
return;
11741175
}
11751176

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp