Bug #30731 | Creation context of stored routine .. is invalid warning after 5.0-->5.1 upgrade | ||
---|---|---|---|
Submitted: | 30 Aug 2007 18:55 | Modified: | 2 Oct 2007 14:00 |
Reporter: | Omer Barnir (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S3 (Non-critical) |
Version: | 5.1.21 | OS: | Any |
Assigned to: | Alexander Nozdrin | CPU Architecture: | Any |
[30 Aug 2007 18:55]
Omer Barnir
[2 Sep 2007 6:53]
Konstantin Osipov
Alik, the fix suggested by Omer seems to make sense. Let's consider setting the values of these columns to system defaults in 5.1 fix_privilege_tables script.
[13 Sep 2007 0:35]
Paul DuBois
Issue has been noted under "Server Changes" at: http://dev.mysql.com/doc/refman/5.1/en/upgrading-from-5-0.html See also http://dev.mysql.com/doc/refman/5.1/en/news-5-1-21.html (under "Bugs fixed")
[2 Oct 2007 8:05]
Alexander Nozdrin
As Paul noted, this is intended behavior: <quote> Incompatible change: Several issues were identified for stored programs (stored functions and procedures, triggers, and events) and views containing non-ASCII symbols. These issues involved conversion errors due to incomplete character set information when translating these objects to and from stored format. To address these problems, the representation for these objects was changed in MySQL 5.1.21. However, the fixes affect all stored programs and views. (For example, you will see warnings about “no creation context.”) To avoid warnings from the server about the use of old definitions from any release prior to 5.1.21, you should dump stored programs and views with mysqldump after upgrading to 5.1.21 or higher, and then reload them to recreate them with new definitions. Invoke mysqldump with a --default-character-set option that names the non-ASCII character set that was used for the definitions when the objects were originally defined. </quote> We can not set proper values during upgrade, because this information was lost. It should have been preserved at the time a stored program is created. This warning signals the user that his objects are not properly constructed.
[2 Oct 2007 14:00]
Omer Barnir
Correcting bug status to closed since the documentation was clarified following the logging of this bug