Permalink
Browse files

Merge pull request #290 from corretge/patch-1

Fixes #1108 - fix for pdosqlexec doesn't throw exception
  • Loading branch information...
2 parents 4817868 + 0671a32 commit 01b3f5081acb9d71c85aec05db2d6cb64de4aa53 @mrook mrook committed Jun 25, 2014
Showing with 11 additions and 1 deletion.
  1. +11 −1 classes/phing/tasks/ext/pdo/DummyPDOQuerySplitter.php
@@ -57,8 +57,18 @@ public function nextQuery()
}
$sql .= " " . $line . "\n";
+
+ /**
+ * fix issue with PDO and wrong formated multistatements
+ * @issue 1108
+ */
+ if (StringHelper::endsWith($delimiter, $line))
+ {
+ break;
+ }
+
}
return $sql;
}
-}
+}

0 comments on commit 01b3f50

Please sign in to comment.