Fix compile error

This commit is contained in:
Teodor Sigaev 2005-10-04 17:10:55 +00:00
parent 8e48e91bc7
commit 380ab3669f

View File

@ -1,5 +1,5 @@
/* /*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.39 2005/10/04 13:40:45 ishii Exp $ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.40 2005/10/04 17:10:55 teodor Exp $
* *
* pgbench: a simple benchmark program for PostgreSQL * pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii * written by Tatsuo Ishii
@ -137,37 +137,37 @@ int num_files; /* its number */
/* default scenario */ /* default scenario */
static char *tpc_b = { static char *tpc_b = {
"\\setrandom aid 1 100000 "\\setrandom aid 1 100000\n"
\\setrandom bid 1 1 "\\setrandom bid 1 1\n"
\\setrandom tid 1 10 "\\setrandom tid 1 10\n"
\\setrandom delta 1 10000 "\\setrandom delta 1 10000\n"
BEGIN; "BEGIN;\n"
UPDATE accounts SET abalance = abalance + :delta WHERE aid = :aid; "UPDATE accounts SET abalance = abalance + :delta WHERE aid = :aid;\n"
SELECT abalance FROM accounts WHERE aid = :aid; "SELECT abalance FROM accounts WHERE aid = :aid;\n"
UPDATE tellers SET tbalance = tbalance + :delta WHERE tid = :tid; "UPDATE tellers SET tbalance = tbalance + :delta WHERE tid = :tid;\n"
UPDATE branches SET bbalance = bbalance + :delta WHERE bid = :bid; "UPDATE branches SET bbalance = bbalance + :delta WHERE bid = :bid;\n"
INSERT INTO history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP); "INSERT INTO history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);\n"
END; "END;\n"
"}; };
/* -N case */ /* -N case */
static char *simple_update = { static char *simple_update = {
"\\setrandom aid 1 100000 "\\setrandom aid 1 100000\n"
\\setrandom bid 1 1 "\\setrandom bid 1 1\n"
\\setrandom tid 1 10 "\\setrandom tid 1 10\n"
\\setrandom delta 1 10000 "\\setrandom delta 1 10000\n"
BEGIN; "BEGIN;\n"
UPDATE accounts SET abalance = abalance + :delta WHERE aid = :aid; "UPDATE accounts SET abalance = abalance + :delta WHERE aid = :aid;\n"
SELECT abalance FROM accounts WHERE aid = :aid; "SELECT abalance FROM accounts WHERE aid = :aid;\n"
INSERT INTO history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP); "INSERT INTO history (tid, bid, aid, delta, mtime) VALUES (:tid, :bid, :aid, :delta, CURRENT_TIMESTAMP);\n"
END; "END;\n"
"}; };
/* -S case */ /* -S case */
static char *select_only = { static char *select_only = {
"\\setrandom aid 1 100000 "\\setrandom aid 1 100000\n"
SELECT abalance FROM accounts WHERE aid = :aid; "SELECT abalance FROM accounts WHERE aid = :aid;\n"
"}; };
static void static void
usage(void) usage(void)