6
use GenTest::SimPipe::Testcase;
7
use GenTest::SimPipe::Oracle::Crash;
9
use GenTest::Constants;
10
use GenTest::Executor::MySQL;
14
my $dsn = 'dbi:mysql:port=19300:user=root:host=127.0.0.1:database=test';
15
my $oracle = GenTest::SimPipe::Oracle::Crash->new( dsn => $dsn , basedir => '/home/philips/bzr/maria-5.3' );
16
$oracle->startServer();
18
my $dbh = DBI->connect($dsn, undef, undef, { mysql_multi_statements => 1, RaiseError => 1 });
24
LEFT JOIN t3 AS alias2
25
LEFT JOIN t4 AS alias3
26
LEFT JOIN t1 AS alias4 ON alias3.f1 = alias4.f1 JOIN t5 AS alias5 ON alias3.f3 ON alias2.f1 = alias5.f5 ON alias1.f4 = alias2.f4
30
$dbh->do("DROP DATABASE IF EXISTS test; CREATE DATABASE test; USE test");
32
my $test = '/home/philips/bzr/randgen-simpipe/case.test';
33
open (Q, $test) or die $!;
40
my $testcase = GenTest::SimPipe::Testcase->newFromDSN( $dsn, [ $query ]);
42
my $new_testcase = $testcase->simplify($oracle);
44
print $new_testcase->toString();