projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4726a2
)
Fixed calculation of bid when generating accounts. Used to create
author
Jan Wieck
<JanWieck@Yahoo.com>
Sat, 27 Sep 2003 19:15:34 +0000
(19:15 +0000)
committer
Jan Wieck
<JanWieck@Yahoo.com>
Sat, 27 Sep 2003 19:15:34 +0000
(19:15 +0000)
accounts.bid values of zero.
Jan
contrib/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgbench/pgbench.c
b/contrib/pgbench/pgbench.c
index a083f0140cd97c84bac230e48a9588c9d4db5919..6072b17c6e32c2acf1653b1d2bf2dfec59e922e7 100644
(file)
--- a/
contrib/pgbench/pgbench.c
+++ b/
contrib/pgbench/pgbench.c
@@
-567,7
+567,7
@@
init(void)
PQclear(res);
}
- snprintf(sql, 256, "%d\t%d\t%d\t\n", j,
j / naccounts
, 0);
+ snprintf(sql, 256, "%d\t%d\t%d\t\n", j,
i / naccounts + 1
, 0);
if (PQputline(con, sql))
{
fprintf(stderr, "PQputline failed\n");