summaryrefslogtreecommitdiff
path: root/src/test/isolation/isolationtester.c
diff options
context:
space:
mode:
authorKevin Grittner2012-09-05 00:31:06 +0000
committerKevin Grittner2012-09-05 00:31:06 +0000
commitc63f309cca07c0570494a8f36092633635990db8 (patch)
treee360908023c755b9d77395c13f7082ea661c6f7e /src/test/isolation/isolationtester.c
parent63f1ccd838a19e4a0923221b2f90e4e014cabf74 (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.c4
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]));