1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug with EXPLAIN on empty table

This commit is contained in:
monty@mashka.mysql.fi
2003-01-20 18:17:14 +02:00
parent a5e30be0d0
commit fab7f39e42
3 changed files with 37 additions and 28 deletions

View File

@ -1,5 +1,8 @@
drop table if exists t1;
create table t1 (id int not null, str char(10), unique(str));
explain select * from t1;
table type possible_keys key key_len ref rows Extra
t1 system NULL NULL NULL NULL 0 const row not found
insert into t1 values (1, null),(2, null),(3, "foo"),(4, "bar");
select * from t1 where str is null;
id str