Commit 2ecac19a authored by maks feltrin's avatar maks feltrin Committed by Steve Müller

avoid recursive quoteIdentifier call

each $part does not contain ".", so quoteSingleIdentifier may be called directly thus avoiding recursive strpos checks.
parent f7dbc5df
......@@ -1825,7 +1825,7 @@ abstract class AbstractPlatform
public function quoteIdentifier($str)
{
if (strpos($str, ".") !== false) {
$parts = array_map(array($this, "quoteIdentifier"), explode(".", $str));
$parts = array_map(array($this, "quoteSingleIdentifier"), explode(".", $str));
return implode(".", $parts);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment