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

Commitb9a3139

Browse files
committed
psql: Rename results to result when only a single one is meant
This makes the naming more consistent with the libpq API and the restof the code, and makes actually supporting multiple result sets in thefuture less confusing.Discussion:https://www.postgresql.org/message-id/flat/db72fb98-9b43-d776-7247-6ed38f28e7c6%40enterprisedb.com
1 parentf5744f1 commitb9a3139

File tree

8 files changed

+142
-142
lines changed

8 files changed

+142
-142
lines changed

‎src/bin/psql/command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ HandleSlashCmds(PsqlScanState scan_state,
279279
* Subroutine to actually try to execute a backslash command.
280280
*
281281
* The typical "success" result code is PSQL_CMD_SKIP_LINE, although some
282-
* commands return something else. Failureresults are PSQL_CMD_ERROR,
282+
* commands return something else. Failureresult code is PSQL_CMD_ERROR,
283283
* unless PSQL_CMD_UNKNOWN is more appropriate.
284284
*/
285285
staticbackslashResult
@@ -683,7 +683,7 @@ exec_command_copyright(PsqlScanState scan_state, bool active_branch)
683683
}
684684

685685
/*
686-
* \crosstabview -- execute a query and displayresults in crosstab
686+
* \crosstabview -- execute a query and displayresult in crosstab
687687
*/
688688
staticbackslashResult
689689
exec_command_crosstabview(PsqlScanStatescan_state,boolactive_branch)
@@ -5084,7 +5084,7 @@ do_watch(PQExpBuffer query_buf, double sleep)
50845084
timebuf,sleep);
50855085
myopt.title=title;
50865086

5087-
/* Run the query and print out theresults */
5087+
/* Run the query and print out theresult */
50885088
res=PSQLexecWatch(query_buf->data,&myopt,pagerpipe);
50895089

50905090
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp