Bug #29771 | The cursor is automatically closed. | ||
---|---|---|---|
Submitted: | 12 Jul 2007 19:50 | Modified: | 17 Jul 2007 11:25 |
Reporter: | Jiang Bian | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.045 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | cursor |
[12 Jul 2007 19:50]
Jiang Bian
[13 Jul 2007 7:02]
Sveta Smirnova
Thank you for the report. Please provide output of SHOW CREATE TABLE recipientinfo and SHOW CREATE TABLE message
[13 Jul 2007 13:47]
Jiang Bian
Here are the table structures of recipientinfo and message tables. DROP TABLE IF EXISTS `enron`.`message`; CREATE TABLE `enron`.`message` ( `mid` int(10) NOT NULL default '0', `sender` varchar(127) NOT NULL default '', `date` datetime default NULL, `message_id` varchar(127) default NULL, `subject` text, `body` text, `folder` varchar(127) NOT NULL default '', PRIMARY KEY (`mid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `enron`.`message`; CREATE TABLE `enron`.`message` ( `mid` int(10) NOT NULL default '0', `sender` varchar(127) NOT NULL default '', `date` datetime default NULL, `message_id` varchar(127) default NULL, `subject` text, `body` text, `folder` varchar(127) NOT NULL default '', PRIMARY KEY (`mid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[13 Jul 2007 14:11]
Sveta Smirnova
Thank you for the feedback. You haven't provided output of SHOW CREATE TABLE recipientinfo. Please, provide it. Also provide output of SHOW TABLE STATUS for both tables.
[13 Jul 2007 14:17]
Jiang Bian
sorry for the duplicate info. I forgot the recipientinfo table. Here the table structure of recipientinfo: DROP TABLE IF EXISTS `enron`.`recipientinfo`; CREATE TABLE `enron`.`recipientinfo` ( `rid` int(10) NOT NULL default '0', `mid` int(10) unsigned NOT NULL default '0', `rtype` enum('TO','CC','BCC') default NULL, `rvalue` varchar(127) default NULL, `dater` datetime default NULL, PRIMARY KEY (`rid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Here is the result for SHOW TABLE STATUS: message MyISAM 10 Dynamic 252759 1924 486526796 281474976710655 2598912 0 2007-07-12 09:18:22 2007-07-12 09:41:53 latin1_swedish_ci (null) (null) recipientinfo MyISAM 10 Dynamic 2064442 38 79686924 281474976710655 21219328 0 2007-07-12 09:19:32 2007-07-12 09:23:23 latin1_swedish_ci (null) (null)
[17 Jul 2007 11:25]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Statement "DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET no_more_rows = TRUE;" works not only for CURSORs, but for regular statements too.