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

Commit2598b76

Browse files
committed
psql: Fix exit status when query is canceled
Because of a small thinko in7844c99,psql -c would exit successfully when a query is canceled. Fix this sothat it exits with a nonzero status, just like for all other errors.
1 parent6cc6619 commit2598b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/psql/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ SendQuery(const char *query)
11141114
pset.crosstab_flag|| !is_select_command(query))
11151115
{
11161116
/* Default fetch-it-all-and-print mode */
1117-
OK= (ExecQueryAndProcessResults(query,&elapsed_msec,&svpt_gone, false,NULL,NULL) >=0);
1117+
OK= (ExecQueryAndProcessResults(query,&elapsed_msec,&svpt_gone, false,NULL,NULL)>0);
11181118
}
11191119
else
11201120
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp