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

Commit6471045

Browse files
committed
Allow empty queries in pgbench.
This might have been too much of a foot-gun before 9.6, but with thenew commands-end-at-semicolons parsing rule, the only way to get anempty query into a script is to explicitly write an extra ";".So we may as well allow the case.Fabien CoelhoPatch: <alpine.DEB.2.20.1607090922170.3412@sto>
1 parent8299471 commit6471045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,7 @@ doCustom(TState *thread, CState *st, StatsData *agg)
18981898
{
18991899
casePGRES_COMMAND_OK:
19001900
casePGRES_TUPLES_OK:
1901+
casePGRES_EMPTY_QUERY:
19011902
break;/* OK */
19021903
default:
19031904
fprintf(stderr,"client %d aborted in state %d: %s",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp