MDL-23431 XMLDB editor fails to parse STATEMENTS properly in certain cases

This commit is contained in:
Petr Skoda
2010-09-05 21:15:12 +00:00
parent 7c48c3c060
commit db3db60f7d
+1 -1
View File
@@ -336,7 +336,7 @@ class XMLDBStatement extends XMLDBObject {
$fields = array();
/// Get first part from the sentence (before VALUES)
preg_match('/^\((.*)\)\s+VALUES/is', $sentence, $matches);
preg_match('/^\((.*)\)\s+VALUES/Us', $sentence, $matches);
if (isset($matches[1])) {
$part = $matches[1];
/// Convert the comma separated string to an array