Bug #5877 | server crashes when field in cursor is fetched into the variable with same name | ||
---|---|---|---|
Submitted: | 4 Oct 2004 12:47 | Modified: | 4 Oct 2004 21:02 |
Reporter: | Levap Aretnyd | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.1-alpha-nt | OS: | Windows (Windows 2003 web) |
Assigned to: | CPU Architecture: | Any |
[4 Oct 2004 12:47]
Levap Aretnyd
[4 Oct 2004 21:02]
MySQL Verification Team
Hi, Thank you for the report, but I can't repeat it on the 5.0.2-debug-log: mysql> delimiter // mysql> CREATE PROCEDURE `curdemo`() -> BEGIN -> DECLARE done INT DEFAULT 0; -> DECLARE jmeno VARCHAR(64) DEFAULT ''; -> DECLARE cur CURSOR FOR SELECT `jmeno` FROM `fjmena` LIMIT 10; -> DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1; -> OPEN cur; -> REPEAT -> FETCH cur INTO jmeno; -> UNTIL done END REPEAT; -> CLOSE cur; -> END// Query OK, 0 rows affected (0.00 sec) mysql> call curdemo()// Query OK, 0 rows affected (0.00 sec)
[4 Oct 2004 23:28]
Levap Aretnyd
I've built lastest 5.0.2 snapshot and problem is gone. Sorry about not using lastest snapshot.