| Bug #11652 | calling SP with prepare, execute , destory stmt caused server crash | ||
|---|---|---|---|
| Submitted: | 30 Jun 2005 4:08 | Modified: | 2 Jul 2005 7:49 |
| Reporter: | Paul McArdle | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.0.7 Beta | OS: | Any (*) |
| Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[30 Jun 2005 4:08]
Paul McArdle
[30 Jun 2005 6:25]
Aleksey Kishkin
got error on mysqld console: -pure virtual function call
[2 Jul 2005 7:49]
Konstantin Osipov
mysql> create procedure getrowcount( in tablename varchar(64), out rowcount bigint )
-> begin
-> declare stmt_exp varchar(128);
-> set @stmt_exp = concat('select count(*) from ', tablename );
-> prepare stmt from @stmt_exp ;
-> execute stmt;
-> deallocate prepare stmt;
-> end//
ERROR 1314 (0A000): PREPARE is not allowed in stored procedures
mysql> delimiter ;
mysql> select version();
+-------------------------------+
| version() |
+-------------------------------+
| 5.0.9-beta-valgrind-max-debug |
+-------------------------------+
1 row in set (0.00 sec)
prepare/deallocate/execute were disabled in stored procedures in 5.0.8.
We will implement support for it in future releases.
