Bug #35118 | Backup:Restore fails if previous create Procedure/Function/Trigger command fails | ||
---|---|---|---|
Submitted: | 6 Mar 2008 15:54 | Modified: | 1 Oct 2008 9:52 |
Reporter: | Hema Sridharan | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Backup | Severity: | S3 (Non-critical) |
Version: | mysql-6.0-backup | OS: | Linux |
Assigned to: | Jørgen Løland | CPU Architecture: | Any |
[6 Mar 2008 15:54]
Hema Sridharan
[13 Mar 2008 16:53]
MySQL Verification Team
Thank you for the bug report.
[25 Apr 2008 14:18]
Rafal Somla
See very similar BUG#34180.
[1 Oct 2008 9:52]
Jørgen Løland
I can't repeat the problem on the backup branch anymore. I have run the following mtr test script without problems on Ubuntu x86/64: -------------- ############ # Procedure ############ create database test1; use test1; create table country (cno int ,c_code char(10), city varchar(10)); insert into country values (1,'ind','bang'),(2,'ind','chen'),(3,'ind','bomb'),(4,'ind','hyd'),(5,'us','sfo'),(6,'us', 'phili'); --error 1064 create procedure countryinfo (IN loc char(3)) BEGIN select * from country where c_code=loc ; delimiter //; create procedure countryinfo (IN loc char(3)) BEGIN select * from country where c_code=loc; end // --replace_column 1 # backup database test1 to 'test1.bup'; // delimiter ;// --echo --echo Contents of "Country" before restore select * from country; --echo --echo Result of procedure before restore call countryinfo ('ind'); --echo --replace_column 1 # restore from 'test1.bup'; --echo --echo Contents of "Country" after restore select * from country; --echo --echo Result of procedure after restore call countryinfo ('ind'); ############ # Function ############ create database test2; use test2; create table country (cno int ,c_code char(10), city varchar(10)); insert into country values (1,'ind','bang'),(2,'ind','chen'),(3,'ind','bomb'),(4,'ind','hyd'),(5,'us','sfo'),(6,'us', 'phili'); delimiter //; --error 1064 create function number_of_country() returns integer begin return (select count(*) from country);// create function number_of_country() returns integer begin return (select count(*) from country); end // --replace_column 1 # backup database test2 to 'test2.bup'; // delimiter ;// --echo --echo Contents of "Country" before restore select * from country; --echo --echo Result of function before restore select number_of_country(); --echo --replace_column 1 # restore from 'test2.bup'; --echo --echo Contents of "Country" after restore select * from country; --echo --echo Result of function after restore select number_of_country();