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

Commita99b285

Browse files
author
Neil Conway
committed
Correct a thinko in pgbench that might result in incorrectly ignoring an
error condition when executing some DDL. Per report from ITAGAKI Takahiro.
1 parent4550c1e commita99b285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.35 2004/11/09 06:09:31 neilc Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.36 2005/05/24 00:26:40 neilc Exp $
33
*
44
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -622,7 +622,7 @@ init(void)
622622
for (i=0;i< (sizeof(DDLAFTERs) /sizeof(char*));i++)
623623
{
624624
res=PQexec(con,DDLAFTERs[i]);
625-
if (strncmp(DDLs[i],"drop",4)&&PQresultStatus(res)!=PGRES_COMMAND_OK)
625+
if (PQresultStatus(res)!=PGRES_COMMAND_OK)
626626
{
627627
fprintf(stderr,"%s",PQerrorMessage(con));
628628
exit(1);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp