Bug #42327 MySQLDump + Stored Proc bug
| Submitted: | 25 Jan 2009 14:55 | Modified: | 25 Jan 2009 18:02 |
|---|---|---|---|
| Reporter: | Cal Leeming [Simplicity Media Ltd] | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.67, 5.0 bzr | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | commented, crlf, mysqldump, routines, stored procedures | ||
[25 Jan 2009 14:55]
Cal Leeming [Simplicity Media Ltd]
[25 Jan 2009 15:54]
Valeriy Kravchuk
Thank you for the problem report. Please, send a smaple dump that demonstrates the behaviour described.
[25 Jan 2009 16:03]
Cal Leeming [Simplicity Media Ltd]
/*!50003 SET SESSION SQL_MODE=@OLD_SQL_MODE*/;;
/*!50003 DROP PROCEDURE IF EXISTS `testProcedure` */;;
/*!50003 SET SESSION SQL_MODE=""*/;;
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `testProcedure`()
SELECT
*
FROM
`mysql`.`user`
#GROUP BY
#`User` */;;
Notice how the */;; will be commented out due to the lack of CRLF.
If you put that in a dump, then try to execute it, the import will fail. To replicate this fault, you'll need to create the stored proc first with your favourite GUI (I used Navicat), then dump it out using mysqldump.
[25 Jan 2009 18:02]
Sveta Smirnova
Thank you for the report. Verified as described. Version 5.1 and 6.0 are not affected.
[25 Jan 2009 18:03]
Sveta Smirnova
Regarding to the last comment I mean 5.1 and 6.0 versions from the development source tree. Wait new release anyway.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.