Bug #32249 | Intermittent 'duplicate entry' for key 'group_key' on FLOOR(RAND()) | ||
---|---|---|---|
Submitted: | 9 Nov 2007 21:12 | Modified: | 11 Nov 2007 8:35 |
Reporter: | Domas Mituzas | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.0-bk, 5.1-bk | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
Tags: | Rand() |
[9 Nov 2007 21:12]
Domas Mituzas
[11 Nov 2007 8:35]
Ramil Kalimullin
From the manual (see http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#function_rand ): "You cannot use a column with RAND() values in an ORDER BY clause, because ORDER BY would evaluate the column multiple times".