B.3.7 Known Issues in MySQL (original) (raw)

B.3.7 Known Issues in MySQL

This section lists known issues in recent versions of MySQL.

For information about platform-specific issues, see the installation and debugging instructions inSection 2.1, “General Installation Guidance”, andSection 7.9, “Debugging MySQL”.

The following problems are known:

mysql> UPDATE tbl_name SET KEY=KEY+1,KEY=KEY+1;  
mysql> SELECT * FROM temp_table, temp_table AS t2;  
ERROR 1137: Can't reopen table: 'temp_table'  
SELECT DISTINCT mp3id FROM band_downloads  
       WHERE userid = 9 ORDER BY id DESC;  

and

SELECT DISTINCT band_downloads.mp3id  
       FROM band_downloads,band_mp3  
       WHERE band_downloads.userid = 9  
       AND band_mp3.id = band_downloads.mp3id  
       ORDER BY band_downloads.id DESC;  

In the second case, you may get two identical rows in the result set (because the values in the hiddenid column may differ).
Note that this happens only for queries that do not have theORDER BY columns in the result.