Ticket #413: delimiter.diff
| File delimiter.diff, 1.3 KB (added by mmalone@…, 2 years ago) |
|---|
-
classes/phing/tasks/ext/pdo/PDOSQLExecTask.php
407 407 $line = ProjectConfigurator::replaceProperties($this->project, $line, 408 408 $this->project->getProperties()); 409 409 410 if (StringHelper::startsWith("//", $line) || 410 if (($line != $this->delimiter) && ( 411 StringHelper::startsWith("//", $line) || 411 412 StringHelper::startsWith("--", $line) || 412 StringHelper::startsWith("#", $line)) {413 StringHelper::startsWith("#", $line))) { 413 414 continue; 414 415 } 415 416 … … 418 419 continue; 419 420 } 420 421 422 // MySQL supports defining new delimiters 423 if (preg_match('/DELIMITER [\'"]?([^\'" $]+)[\'"]?/i', $line, $matches)) { 424 $this->setDelimiter($matches[1]); 425 continue; 426 } 427 421 428 if ($sqlBacklog !== "") { 422 429 $sql = $sqlBacklog; 423 430 $sqlBacklog = "";
