2010-11-24 Steffen Kamper <steffen@typo3.org>
2010-11-24 Steffen Kamper <steffen@typo3.org>
+ * Fixed bug #16556: error in t3lib_sqlparser - missing second parameter in functioncall parseError
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_sqlengine
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_spritemanager
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_softrefproc
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_sqlengine
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_spritemanager
* Fixed bug #14050: CleanUp - CGL format of t3lib files - t3lib_softrefproc
$parseString = trim(substr($parseString, 1)); // Strip of "("
$stack[$level][$pnt[$level]]['func']['substr'] = $this->getValue($parseString);
if (!$this->nextPart($parseString, '^(,)')) {
$parseString = trim(substr($parseString, 1)); // Strip of "("
$stack[$level][$pnt[$level]]['func']['substr'] = $this->getValue($parseString);
if (!$this->nextPart($parseString, '^(,)')) {
- return $this->parseError('No comma found as expected in parseWhereClause()');
+ return $this->parseError('No comma found as expected in parseWhereClause()', $parseString);
}
if ($fieldName = $this->nextPart($parseString, '^([[:alnum:]\*._]+)[[:space:]]*')) {
}
if ($fieldName = $this->nextPart($parseString, '^([[:alnum:]\*._]+)[[:space:]]*')) {
$stack[$level][$pnt[$level]]['func']['pos'] = $this->getValue($parseString);
}
if (!$this->nextPart($parseString, '^([)])')) {
$stack[$level][$pnt[$level]]['func']['pos'] = $this->getValue($parseString);
}
if (!$this->nextPart($parseString, '^([)])')) {
- return $this->parseError('No ) parenthesis at end of function');
+ return $this->parseError('No ) parenthesis at end of function', $parseString);
}
} elseif (preg_match('/^IFNULL[[:space:]]*[(]/i', $parseString)) {
$stack[$level][$pnt[$level]]['func']['type'] = $this->nextPart($parseString, '^(IFNULL)[[:space:]]*');
}
} elseif (preg_match('/^IFNULL[[:space:]]*[(]/i', $parseString)) {
$stack[$level][$pnt[$level]]['func']['type'] = $this->nextPart($parseString, '^(IFNULL)[[:space:]]*');
$stack[$level][$pnt[$level]]['func']['default'] = $this->getValue($parseString);
}
if (!$this->nextPart($parseString, '^([)])')) {
$stack[$level][$pnt[$level]]['func']['default'] = $this->getValue($parseString);
}
if (!$this->nextPart($parseString, '^([)])')) {
- return $this->parseError('No ) parenthesis at end of function');
+ return $this->parseError('No ) parenthesis at end of function', $parseString);
}
} elseif (preg_match('/^FIND_IN_SET[[:space:]]*[(]/i', $parseString)) {
$stack[$level][$pnt[$level]]['func']['type'] = $this->nextPart($parseString, '^(FIND_IN_SET)[[:space:]]*');
}
} elseif (preg_match('/^FIND_IN_SET[[:space:]]*[(]/i', $parseString)) {
$stack[$level][$pnt[$level]]['func']['type'] = $this->nextPart($parseString, '^(FIND_IN_SET)[[:space:]]*');