Index: classes/phing/tasks/ext/pdo/PDOSQLExecTask.php
===================================================================
--- classes/phing/tasks/ext/pdo/PDOSQLExecTask.php      (revision 681)
+++ classes/phing/tasks/ext/pdo/PDOSQLExecTask.php      (working copy)
@@ -407,9 +407,10 @@
                 $line = ProjectConfigurator::replaceProperties($this->project, $line,
                         $this->project->getProperties());
 
-                if (StringHelper::startsWith("//", $line) ||
+                if (($line != $this->delimiter) && (
+                    StringHelper::startsWith("//", $line) ||
                     StringHelper::startsWith("--", $line) ||
-                    StringHelper::startsWith("#", $line)) {
+                    StringHelper::startsWith("#", $line))) {
                     continue;
                 }
 
@@ -418,6 +419,12 @@
                     continue;
                 }
 
+                // MySQL supports defining new delimiters
+                if (preg_match('/DELIMITER [\'"]?([^\'" $]+)[\'"]?/i', $line, $matches)) {
+                    $this->setDelimiter($matches[1]);
+                    continue;
+                }
+
                 if ($sqlBacklog !== "") {
                     $sql = $sqlBacklog;
                     $sqlBacklog = "";
