Bug #17421 | MySQL Cluster doesn't like LIKE | ||
---|---|---|---|
Submitted: | 15 Feb 2006 11:58 | Modified: | 30 Nov 2006 15:33 |
Reporter: | Alexander List | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 5.0.18-max | OS: | Linux (Debian GNU/Linux .31) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[15 Feb 2006 11:58]
Alexander List
[20 Feb 2006 14:15]
Hartmut Holzgraefe
Hi, i was not able to reproduce this so far, could you provide us with the following for further testing? - your cluster configuration file - EXPLAIN output for all queries - a full dump of your RADONLINE table
[21 Feb 2006 13:39]
Alexander List
I'm sorry but I cannot give you a dump of the whole RADONLINE table as it contains confidential information. However, I can give you a dump of a test table that has identical structure and contains fake data if you want. Reproducing the problem is simpler tho: mysql> create table test2 (c1 VARCHAR(255), c2 VARCHAR(255)) ENGINE=ndbcluster; Query OK, 0 rows affected (0.30 sec) mysql> insert into test2 values('foo','bar'); Query OK, 1 row affected (0.00 sec) mysql> select * from test2; +------+------+ | c1 | c2 | +------+------+ | foo | bar | +------+------+ 1 row in set (0.04 sec) mysql> EXPLAIN select * from test2; +----+-------------+-------+------+---------------+------+---------+------+------+-------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-------+ | 1 | SIMPLE | test2 | ALL | NULL | NULL | NULL | NULL | 100 | | +----+-------------+-------+------+---------------+------+---------+------+------+-------+ 1 row in set (0.01 sec) mysql> select * from test2 where c1='foo' or c2=''; +------+------+ | c1 | c2 | +------+------+ | foo | bar | +------+------+ 1 row in set (0.04 sec) mysql> EXPLAIN select * from test2 where c1='foo' or c2=''; +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | 1 | SIMPLE | test2 | ALL | NULL | NULL | NULL | NULL | 100 | Using where with pushed condition | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ 1 row in set (0.00 sec) mysql> select * from test2 where c1 like 'foo' or c2=''; Empty set (0.01 sec) mysql> EXPLAIN select * from test2 where c1 like 'foo' or c2=''; +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | 1 | SIMPLE | test2 | ALL | NULL | NULL | NULL | NULL | 100 | Using where with pushed condition | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ 1 row in set (0.01 sec) mysql> select * from test2 where c1 like 'foo'; +------+------+ | c1 | c2 | +------+------+ | foo | bar | +------+------+ 1 row in set (0.01 sec) mysql> EXPLAIN select * from test2 where c1 like 'foo'; +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ | 1 | SIMPLE | test2 | ALL | NULL | NULL | NULL | NULL | 100 | Using where with pushed condition | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------+ 1 row in set (0.04 sec) -----snap----- Here's the dump of test2 -----snip----- -- MySQL dump 10.10 -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.0.18-max-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `test2` -- DROP TABLE IF EXISTS `test2`; CREATE TABLE `test2` ( `c1` varchar(255) default NULL, `c2` varchar(255) default NULL ) ENGINE=ndbcluster DEFAULT CHARSET=latin1; -- -- Dumping data for table `test2` -- /*!40000 ALTER TABLE `test2` DISABLE KEYS */; LOCK TABLES `test2` WRITE; INSERT INTO `test2` VALUES ('foo','bar'); UNLOCK TABLES; /*!40000 ALTER TABLE `test2` ENABLE KEYS */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -----snap-----
[30 Mar 2006 8:32]
Alexander List
I wonder if you have any news wrt this bug...
[4 May 2006 23:02]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5986
[22 May 2006 9:38]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented bugfix in 4.1.20/5.0.22/5.1.10 changelogs. Closed.
[19 Oct 2006 12:47]
Alexander List
According to http://dev.mysql.com/doc/refman/5.0/en/news-5-0-23.html this issue has not been fixed in 5.0.22, but in 5.0.23. I will test this next week and report if the fix works.
[30 Oct 2006 15:33]
Martin Skold
Awaiting test result
[1 Dec 2006 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".