show table status is broken when tables are locked

2002-11-01 Thread Andrey Gubarev
>Description: If a thread grabs a lock on a table, the __unlocked__ tables don't show properly in "show table status". In particular, almost all fields (except for table name) are returned as NULL. >How-To-Repeat: show table status from mysql; lock tables my

weird indexing behavior in presense of limit

2001-05-23 Thread Andrey Gubarev
I have a very large table, where one of the columns is color enum("red", "blue", "black") The distribution of values is 90% black, 8% blue, and 2% red. I want to be able to randomly select 10 rows matching a certain color from the table. Of course, select * from my_table where color = "bl

weird indexing behavior in presense of LIMIT

2001-04-19 Thread Andrey Gubarev
I have a very large table, where one of the columns is color enum("red", "blue", "black") The distribution of values is 90% black, 8% blue, and 2% red. I want to be able to randomly select 10 rows matching a certain color from the table. Of course, select * from my_table where color