Bug #41638 | cursor no longer supports DESCRIBE table | ||
---|---|---|---|
Submitted: | 19 Dec 2008 13:32 | Modified: | 9 Jan 2009 20:29 |
Reporter: | Scott Noyes | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1.30 | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
Tags: | regression |
[19 Dec 2008 13:32]
Scott Noyes
[23 Dec 2008 11:57]
Davi Arnaut
The support for declaring cursors to SHOW commands (DESC is a alias for SHOW FIELDS) was intentionally disabled in the patch for Bug#29223. The syntax was an un-intended feature that leaked as a result of a coding bug.
[23 Dec 2008 12:39]
Davi Arnaut
Reclassifying as a documentation issue, should have been listed as a incompatible change.
[9 Jan 2009 20:29]
Paul DuBois
It was listed as an incompatible change, in the 5.1.23 changelog. http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html However, I've expanded the changelog entry to point out the workaround: Within a stored routine, it is no longer allowable to declare a cursor for a SHOW or DESCRIBE statement. This happened to work in some instances, but is no longer supported. In many cases, a workaround for this change is to use the cursor with a SELECT query to read from an INFORMATION_SCHEMA table that provides the same information as the SHOW statement.