diff options
author | Kevin Grittner | 2012-09-05 00:31:06 +0000 |
---|---|---|
committer | Kevin Grittner | 2012-09-05 00:31:06 +0000 |
commit | c63f309cca07c0570494a8f36092633635990db8 (patch) | |
tree | e360908023c755b9d77395c13f7082ea661c6f7e /src/test/isolation/isolationtester.c | |
parent | 63f1ccd838a19e4a0923221b2f90e4e014cabf74 (diff) |
Allow isolation tests to specify multiple setup blocks.
Each setup block is run as a single PQexec submission, and some
statements such as VACUUM cannot be combined with others in such a
block.
Backpatch to 9.2.
Kevin Grittner and Tom Lane
Diffstat (limited to 'src/test/isolation/isolationtester.c')
-rw-r--r-- | src/test/isolation/isolationtester.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 98f89da6bff..4c4556654b3 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -512,9 +512,9 @@ run_permutation(TestSpec * testspec, int nsteps, Step ** steps) printf("\n"); /* Perform setup */ - if (testspec->setupsql) + for (i = 0; i < testspec->nsetupsqls; i++) { - res = PQexec(conns[0], testspec->setupsql); + res = PQexec(conns[0], testspec->setupsqls[i]); if (PQresultStatus(res) != PGRES_COMMAND_OK) { fprintf(stderr, "setup failed: %s", PQerrorMessage(conns[0])); |