2
# This program is free software; you can redistribute it and/or modify
3
# it under the terms of the GNU General Public License as published by
4
# the Free Software Foundation; version 2 of the License.
6
# This program is distributed in the hope that it will be useful, but
7
# WITHOUT ANY WARRANTY; without even the implied warranty of
8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
# General Public License for more details.
11
# You should have received a copy of the GNU General Public License
12
# along with this program; if not, write to the Free Software
13
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
16
package GenTest::Transform::SelectOption;
19
@ISA = qw(GenTest GenTest::Transform);
25
use GenTest::Transform;
26
use GenTest::Constants;
29
my ($class, $orig_query) = @_;
31
return STATUS_WONT_HANDLE if $orig_query !~ m{SELECT}io;
32
return STATUS_WONT_HANDLE if $orig_query =~ m{SQL_BIG_RESULT|SQL_SMALL_RESULT|SQL_BUFFER_RESULT}io;
34
my $modified_queries = [
35
$orig_query." /* TRANSFORM_OUTCOME_UNORDERED_MATCH */ ",
36
$orig_query." /* TRANSFORM_OUTCOME_UNORDERED_MATCH */ ",
37
$orig_query." /* TRANSFORM_OUTCOME_UNORDERED_MATCH */ "
40
$modified_queries->[0] =~ s{SELECT}{SELECT SQL_BIG_RESULT}io;
41
$modified_queries->[1] =~ s{SELECT}{SELECT SQL_SMALL_RESULT}io;
42
$modified_queries->[2] =~ s{SELECT}{SELECT SQL_BUFFER_RESULT}io;
44
return $modified_queries;