Fixed bug #13430: Cannot parse INSERT when VALUES has no space before left parenthesis
authorXavier Perseguers <typo3@perseguers.ch>
Sat, 6 Feb 2010 21:51:16 +0000 (21:51 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Sat, 6 Feb 2010 21:51:16 +0000 (21:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6855 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_sqlparser.php

index 737de11..92d9433 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-06  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Fixed bug #13430: Cannot parse INSERT when VALUES has no space before left parenthesis
+
 2010-02-05  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #13391: JS-error in common.js crashes flash uploader
index 7072ceb..59ee5b8 100644 (file)
@@ -330,7 +330,7 @@ class t3lib_sqlparser {
 
                if ($result['TABLE'])   {
 
-                       if ($this->nextPart($parseString,'^(VALUES)[[:space:]]+'))      {       // In this case there are no field names mentioned in the SQL!
+                       if ($this->nextPart($parseString,'^(VALUES)([[:space:]]+|\()')) {       // In this case there are no field names mentioned in the SQL!
                                        // Get values/fieldnames (depending...)
                                $result['VALUES_ONLY'] = $this->getValue($parseString,'IN');
                                if ($this->parse_error) { return $this->parse_error; }