Bug #55734 | Attribute 'columns' doesn't work with 'datetime' field | ||
---|---|---|---|
Submitted: | 4 Aug 2010 9:24 | Modified: | 16 Aug 2010 21:04 |
Reporter: | Dmitry Zhilin | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.5.5-m3 | OS: | FreeBSD (8.0 amd64) |
Assigned to: | CPU Architecture: | Any | |
Tags: | datetime partition |
[4 Aug 2010 9:24]
Dmitry Zhilin
[4 Aug 2010 12:51]
Rene' Cannao'
Thanks for the bug report. Verified as described, and also with the same table used in the example in http://dev.mysql.com/doc/refman/5.5/en/partitioning-limitations.html : CREATE TABLE rc (c1 INT, c2 DATE) PARTITION BY RANGE COLUMNS(c2) ( PARTITION p0 VALUES LESS THAN('1990-01-01'), PARTITION p1 VALUES LESS THAN('1995-01-01'), PARTITION p2 VALUES LESS THAN('2000-01-01'), PARTITION p3 VALUES LESS THAN('2005-01-01'), PARTITION p4 VALUES LESS THAN(MAXVALUE) ); INSERT INTO rc(c2) VALUES ('1991-01-01'),('1996-01-01'),('2001-01-01'),('2006-01-01'); INSERT INTO rc SELECT * FROM rc; ... INSERT INTO rc SELECT * FROM rc; mysql> EXPLAIN PARTITIONS SELECT COUNT(*) FROM rc WHERE c2='2001-01-01'; +----+-------------+-------+----------------+------+---------------+------+---------+------+-------+-------------+ | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+----------------+------+---------------+------+---------+------+-------+-------------+ | 1 | SIMPLE | rc | p0,p1,p2,p3,p4 | ALL | NULL | NULL | NULL | NULL | 32768 | Using where | +----+-------------+-------+----------------+------+---------------+------+---------+------+-------+-------------+ 1 row in set (0.00 sec) mysql> SELECT COUNT(*) FROM rc WHERE c2='2001-01-01'; +----------+ | COUNT(*) | +----------+ | 8192 | +----------+ 1 row in set (0.01 sec)
[9 Aug 2010 10:14]
Mattias Jonsson
If this is on 5.5.5, then I need a more explicit 'How to repeat'. If it is 5.5.4 or 5.5.3 then it is a duplicate of bug#53685. (I did not manage to repeat it with the current mysql-trunk or the released 5.5.5-m3 64 bit mac os x tar version, using a mysql-test test.) Can you please re-verify with 5.5.5-m3 as set in the 'version' field, and if repeatable, write a more informative instruction on how to repeat it, including how you start the server, how you run the test and what configuration you use etc?
[11 Aug 2010 6:35]
Dmitry Zhilin
Mattias, you are right. This error behaves like a bug described at the link <a href='http://bugs.mysql.com/bug.php?id=53685'>bug#53685</a>. >[mysqld] >character-set-server=latin1 > >[mysql] >default-character-set=latin1 If I add these lines to my configuration file, the bug is not repeatable. mysql> SELECT VERSION()\G VERSION(): 5.5.5-m3-log
[16 Aug 2010 21:04]
Rene' Cannao'
Dmitry, Mattias, Thanks, I am marking this as a duplicate of bug #53685 .