diff options
author | unknown <hf@deer.(none)> | 2003-07-03 20:57:51 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-07-03 20:57:51 +0500 |
commit | 8d7eb4a0e5b7d71e09c689fcc0318382c780302e (patch) | |
tree | d26249584a7ab19505e0e38ce81473b88f0e4a2b /mysql-test/t/handler.test | |
parent | fd0ecf1e47baca9e288e8cf038ca731962afdf14 (diff) | |
download | mariadb-git-8d7eb4a0e5b7d71e09c689fcc0318382c780302e.tar.gz |
Proposed fix for #751
Fields in key_expr (mysql_ha_read) wasn't linked to tables.
Hmm. How did it work at all?
mysql-test/r/alias.result:
It's better to delete table after the test
mysql-test/r/handler.result:
appropriate result
mysql-test/t/alias.test:
it's better to drop table after test
mysql-test/t/handler.test:
test case for #751
sql/sql_handler.cc:
fix_fields called
Diffstat (limited to 'mysql-test/t/handler.test')
-rw-r--r-- | mysql-test/t/handler.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/handler.test b/mysql-test/t/handler.test index 7020a4ab3d3..b1902c213bf 100644 --- a/mysql-test/t/handler.test +++ b/mysql-test/t/handler.test @@ -80,3 +80,13 @@ alter table t1 type=MyISAM; handler t2 read first; drop table t1; +# +#test for #751 +# +create table t1(a int, index(a)); +insert into t1 values (1), (2), (3); +handler t1 open; +--error 1054 +handler t1 read a=(W); +drop table t1; + |