summaryrefslogtreecommitdiff
path: root/mysql-test/ndb
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2004-12-20 16:52:14 +0100
committerunknown <pekka@mysql.com>2004-12-20 16:52:14 +0100
commiteef88fade1a8d882eaf1814e8743df5a3a03fb9a (patch)
tree378e2a945fab8d72ccfc51df07a270f93215e1f2 /mysql-test/ndb
parent5259a1cbce556ada0a4ba0cbdfc7db3bcc3d8f51 (diff)
downloadmariadb-git-eef88fade1a8d882eaf1814e8743df5a3a03fb9a.tar.gz
ndb: index tests
ndb/test/ndbapi/testOIBasic.cpp: test ordering, add hash indexes, fix result verification mysql-test/ndb/ndb_range_bounds.pl: minor mysql-test/r/ndb_index_ordered.result: minor mysql-test/t/ndb_index_ordered.test: minor
Diffstat (limited to 'mysql-test/ndb')
-rw-r--r--mysql-test/ndb/ndb_range_bounds.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql-test/ndb/ndb_range_bounds.pl b/mysql-test/ndb/ndb_range_bounds.pl
index 3b1844495b3..abe1ea28298 100644
--- a/mysql-test/ndb/ndb_range_bounds.pl
+++ b/mysql-test/ndb/ndb_range_bounds.pl
@@ -1,6 +1,7 @@
#
# test range scan bounds
# give option --all to test all cases
+# set MYSQL_HOME to installation top
#
use strict;
@@ -14,8 +15,9 @@ my $opt_verbose = 0;
GetOptions("all" => \$opt_all, "cnt=i" => \$opt_cnt, "verbose" => \$opt_verbose)
or die "options are: --all --cnt=N --verbose";
-my $mysql_top = $ENV{MYSQL_TOP};
-my $dsn = "dbi:mysql:database=test;host=localhost;mysql_read_default_file=$mysql_top/.target/var/my.cnf";
+my $mysql_home = $ENV{MYSQL_HOME};
+defined($mysql_home) or die "no MYSQL_HOME";
+my $dsn = "dbi:mysql:database=test;host=localhost;mysql_read_default_file=$mysql_home/var/my.cnf";
my $opts = { RaiseError => 0, PrintError => 0, AutoCommit => 1, };
my $dbh;