Bug #7751 | Problem with where clause in 4.1.8 | ||
---|---|---|---|
Submitted: | 9 Jan 2005 11:48 | Modified: | 5 Feb 2005 2:02 |
Reporter: | Svetozar Urumov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | musql 4.1.7 , 4.1.8 | OS: | Windows (Windows, FreeBSD) |
Assigned to: | Igor Babaev | CPU Architecture: | Any |
[9 Jan 2005 11:48]
Svetozar Urumov
[2 Feb 2005 7:53]
Igor Babaev
The bug can be reproduced with a simpler test: mysql> CREATE TABLE t1 ( -> id int(11) NOT NULL auto_increment, -> a bigint(20) unsigned default NULL, -> PRIMARY KEY (id) -> ) ENGINE=MyISAM; Query OK, 0 rows affected (4.52 sec) mysql> mysql> INSERT INTO t1 VALUES -> ('0','16307858876001849059'); Query OK, 1 row affected (0.00 sec) mysql> mysql> SELECT CONV('e251273eb74a8ee3', 16, 10); +----------------------------------+ | CONV('e251273eb74a8ee3', 16, 10) | +----------------------------------+ | 16307858876001849059 | +----------------------------------+ 1 row in set (0.00 sec) mysql> mysql> EXPLAIN -> SELECT id -> FROM t1 -> WHERE a = 16307858876001849059; +----+-------------+-------+--------+---------------+------+---------+------+------+-------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+--------+---------------+------+---------+------+------+-------+ | 1 | SIMPLE | t1 | system | NULL | NULL | NULL | NULL | 1 | | +----+-------------+-------+--------+---------------+------+---------+------+------+-------+ 1 row in set (0.00 sec) mysql> mysql> EXPLAIN -> SELECT id -> FROM t1 -> WHERE a = CONV('e251273eb74a8ee3', 16, 10); +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------------------------+ | 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | Impossible WHERE noticed after reading const tables | +----+-------------+-------+------+---------------+------+---------+------+------+-----------------------------------------------------+ 1 row in set (0.00 sec) On 5.0 the results are the same.
[2 Feb 2005 18:12]
Lenz Grimmer
Hasn't this bug been pushed already? Please close it, if it's resolved. Thanks!
[3 Feb 2005 4:12]
Igor Babaev
ChangeSet 1.2164 05/02/01 23:34:31 igor@rurik.mysql.com +3 -0 func_str.result, func_str.test: Added a test case for bug #7751. item_strfunc.cc: Fixed bug #7751. The function Item_func_conv::val_str did not update the unsigned_flag value. The fix is applied to 5.0 as well.
[5 Feb 2005 2:02]
Paul DuBois
Mentioned in 4.1.10 and 5.0.3 change notes.