summaryrefslogtreecommitdiff
path: root/mysql-test/ndb
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2004-10-14 13:23:57 +0200
committerunknown <pekka@mysql.com>2004-10-14 13:23:57 +0200
commitbba3ab070d8714cef5970399079df137973fdaeb (patch)
treeb0121c5424673f19a83c7e2ebd9e8dcef56b58b7 /mysql-test/ndb
parent28de5d36073bfb55433f04c49112bcf7706409d0 (diff)
downloadmariadb-git-bba3ab070d8714cef5970399079df137973fdaeb.tar.gz
NDB dbtux minor change
ndb/src/kernel/blocks/dbtux/Dbtux.hpp: remove TreePos::m_ent ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: remove TreePos::m_ent ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: remove TreePos::m_ent mysql-test/ndb/ndb_range_bounds.pl: more options
Diffstat (limited to 'mysql-test/ndb')
-rw-r--r--mysql-test/ndb/ndb_range_bounds.pl25
1 files changed, 15 insertions, 10 deletions
diff --git a/mysql-test/ndb/ndb_range_bounds.pl b/mysql-test/ndb/ndb_range_bounds.pl
index 264a543752b..75b7f8a33e1 100644
--- a/mysql-test/ndb/ndb_range_bounds.pl
+++ b/mysql-test/ndb/ndb_range_bounds.pl
@@ -7,10 +7,12 @@
use strict;
use integer;
+use Getopt::Long;
-my $all = shift;
-!defined($all) || ($all eq '--all' && !defined(shift))
- or die "only available option is --all";
+my $opt_all = 0;
+my $opt_cnt = 5;
+GetOptions("all" => \$opt_all, "cnt=i" => \$opt_cnt)
+ or die "options are: --all --cnt=N";
my $table = 't';
@@ -67,15 +69,18 @@ sub mkall ($$$\@) {
my($col, $key1, $key2, $val) = @_;
my @a = ();
my $p = mkdummy(@$val);
- push(@a, $p) if $all;
- my @ops1 = $all ? qw(< <= = >= >) : qw(= >= >);
- my @ops2 = $all ? qw(< <= = >= >) : qw(< <=);
+ push(@a, $p) if $opt_all;
+ my @ops = qw(< <= = >= >);
+ for my $op (@ops) {
+ my $p = mkone($col, $op, $key1, @$val);
+ push(@a, $p) if $opt_all || $p->{cnt} != 0;
+ }
+ my @ops1 = $opt_all ? @ops : qw(= >= >);
+ my @ops2 = $opt_all ? @ops : qw(<= <);
for my $op1 (@ops1) {
- my $p = mkone($col, $op1, $key1, @$val);
- push(@a, $p) if $all || $p->{cnt} != 0;
for my $op2 (@ops2) {
my $p = mktwo($col, $op1, $key1, $op2, $key2, @$val);
- push(@a, $p) if $all || $p->{cnt} != 0;
+ push(@a, $p) if $opt_all || $p->{cnt} != 0;
}
}
return \@a;
@@ -95,7 +100,7 @@ create table $table (
index (b, c, d)
) engine=ndb;
EOF
- my @val = (0..4);
+ my @val = (0..($opt_cnt-1));
my $v0 = 0;
for my $v1 (@val) {
for my $v2 (@val) {