Bug #17435 execute fail when backup sql contain \'
Submitted: 15 Feb 2006 20:39 Modified: 4 Sep 2006 15:23
Reporter: Pornchai Rungsirijaratthong Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.1.20 OS:Windows (Windows XP)
Assigned to: Mike Lischke CPU Architecture:Any

[15 Feb 2006 20:39] Pornchai Rungsirijaratthong
Description:
restore fail when backup sql contain \'

How to repeat:
try this:

create table PMTask (
   ID bigint not null,
   tasksCode varchar(255),
   description varchar(255),
   note varchar(255),
   spec varchar(255),
   primary key (ID)
);

INSERT INTO "pmtask" ("ID","tasksCode","description","note","spec") VALUES
 (6389761,'2400','Grease the ball screw slides','','-'),
 (6422529,'2400','Check the conveyor belts for wear','','-'),
 (6455297,'2400','Check the inline material filter for clogging','','-'),
 (6488065,'2400','Inspect all moving cables for excessive wear','','-'),
 (6520833,'2400','Check the slides for wear and smooth operation','','-'),
 (6553601,'VT-9300','Visual inspect signal status light','','-'),
 (6586369,'VT-9300','Clean and vacuum all components','','-'),
 (6619137,'VT-9300','Visual inspect adapter drive belts','','-'),
 (6651905,'VT-9300','Visual inspect adapter clamp','','-'),
 (6684673,'VT-9300','Turn off system AC power','','-'),
 (6717441,'VT-9300','Use vacuum cleaner & bush to clean','','-'),
 (6750209,'VT-9300','Apply grease at movment axis X, Y, Z if it\'s necessary','','-'),
 (6782977,'VT-9300','Access the lubrication nipple on the X & Y axis lead screw','','-'),
 (6815745,'VT-9300','Apply the grease for lead screw for X, Y, & Z axis','','-'),
 (6848513,'VT-9300','Clean the surface of adapter sensor','','-');
INSERT INTO "pmtask" ("ID","tasksCode","description","note","spec") VALUES 
 (6881281,'VT-9300','Inspect the adapter drive belt, Y & Z aixs and change if necessary','','-'),
 (6914049,'VT-9300','Check all screw at conveyor and tighten if it\'s necessary','','-'),
 (6946817,'VT-9300','Check the pressure within the range of 4.5-5.5 bar & clean the filter','','4.5-5.5'),
 (6979585,'SLCF 24','Check and clean the ready state of chain conveyor','','-'),
 (7012353,'SLCF 24','Check and clean the ready state of finger','','-'),
 (7045121,'SLCF 24','Check and clean the finger cleaner tank','','-'),
 (7077889,'SLCF 24','Check all terminal of electrical system','','-'),
 (7110657,'SLCF 24','Check and clean the alignment solder pot module','','-'),
 (7143425,'SLCF 24','Check and clean heater element solder pot module','','-'),
 (7176193,'SLCF 24','Check the lubricate drive shaft','','-'),
 (7208961,'SLCF 24','Check and clean solder pot and solder dross','','-'),
 (7241729,'SLCF 24','Check and clean pump of motor solder pot  module','','-'),
 (7274497,'SLCF 24','Clean dust collector wave soldering','','-');

Suggested fix:
Suggested fix:
Parsing those sql are not correct! They must be 3 sql statement but Query Browser treat
as 2 sql!!
[15 Feb 2006 20:46] Pornchai Rungsirijaratthong
Change Severity
[15 Feb 2006 21:23] MySQL Verification Team
Thank you for the bug report.
[24 Apr 2006 15:10] Valeriy Kravchuk
Bug #17850 was marked as a duplicate of this one.
[4 Sep 2006 15:23] Mike Lischke
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html