Bug #142 | bug of random expression in WHERE clause (Bug with IN and subselect) | ||
---|---|---|---|
Submitted: | 10 Mar 2003 16:31 | Modified: | 11 Mar 2003 8:48 |
Reporter: | jocelyn fournier (Silver Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.23 | OS: | Any (all) |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[10 Mar 2003 16:31]
jocelyn fournier
[11 Mar 2003 7:03]
Oleksandr Byelkin
this is bug of random expression in WHERE clause, which is never chacked (impossible to get random set of record) here is test of it: CREATE TABLE t1 ( id mediumint(8) unsigned NOT NULL auto_increment, pseudo varchar(35) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY pseudo (pseudo) ); INSERT INTO t1 (pseudo) VALUES ('test'); INSERT INTO t1 (pseudo) VALUES ('test1'); SELECT 1 from t1 where rand() > 1;