From: Chris Hilton Date: Tue, 10 Oct 2006 19:05:55 +0000 (+0000) Subject: Added test for delimiter functionality and multiple comments on a line X-Git-Tag: v0.11008~401 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3e5e5622cdadf0099dd853b00b4a138bab2f8803;p=dbsrgits%2FSQL-Translator.git Added test for delimiter functionality and multiple comments on a line --- diff --git a/t/02mysql-parser.t b/t/02mysql-parser.t index a1dc503..980fa7f 100644 --- a/t/02mysql-parser.t +++ b/t/02mysql-parser.t @@ -479,8 +479,11 @@ BEGIN { my $tr = SQL::Translator->new; my $data = parse($tr, q[ - /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; + DELIMITER ;; + /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;; + /*!50003 CREATE */ /*!50017 DEFINER=`cmdomain`@`localhost` */ /*!50003 TRIGGER `acl_entry_insert` BEFORE INSERT ON `acl_entry` FOR EACH ROW SET NEW.dateCreated = CONVERT_TZ(SYSDATE(),'SYSTEM','+0:00'), NEW.dateModified = CONVERT_TZ(SYSDATE(),'SYSTEM','+0:00') */;; + DELIMITER ; CREATE TABLE one ( `op` varchar(255) character set latin1 collate latin1_bin default NULL, `last_modified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,