5
# test for a bug that table mdl is not released when open_index is failed
8
push @INC, "../common/";
15
my $dbh = hstest::init_testdb();
16
my $dbname = $hstest::conf{dbname};
17
my $table = 'hstesttbl';
19
$dbh->do("drop table if exists $table");
21
my $hs = hstest::get_hs_connection();
22
my $r = $hs->open_index(1, $dbname, $table, '', 'k,v'); # fails
23
print "open_index 1st r=$r\n";
27
"create table $table (k varchar(30) primary key, v varchar(30) not null) " .
30
$hs = hstest::get_hs_connection();
31
$r = $hs->open_index(1, $dbname, $table, '', 'k,v'); # success
32
print "open_index 2nd r=$r\n";