diff options
author | Neil Conway <neilc@samurai.com> | 2005-05-24 00:26:40 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-05-24 00:26:40 +0000 |
commit | a99b2852ca79f26e7ba7ee6c0a2c140e7a696cfa (patch) | |
tree | 37b0841af7486073c189a01568f6ae9128642c9f | |
parent | 4550c1e519ee1bdd33897def9cbe47516fcbc757 (diff) | |
download | postgresql-a99b2852ca79f26e7ba7ee6c0a2c140e7a696cfa.tar.gz postgresql-a99b2852ca79f26e7ba7ee6c0a2c140e7a696cfa.zip |
Correct a thinko in pgbench that might result in incorrectly ignoring an
error condition when executing some DDL. Per report from ITAGAKI Takahiro.
-rw-r--r-- | contrib/pgbench/pgbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index 6b4aaec63ea..69145c8331a 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.35 2004/11/09 06:09:31 neilc Exp $ + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.36 2005/05/24 00:26:40 neilc Exp $ * * pgbench: a simple TPC-B like benchmark program for PostgreSQL * written by Tatsuo Ishii @@ -622,7 +622,7 @@ init(void) for (i = 0; i < (sizeof(DDLAFTERs) / sizeof(char *)); i++) { res = PQexec(con, DDLAFTERs[i]); - if (strncmp(DDLs[i], "drop", 4) && PQresultStatus(res) != PGRES_COMMAND_OK) + if (PQresultStatus(res) != PGRES_COMMAND_OK) { fprintf(stderr, "%s", PQerrorMessage(con)); exit(1); |