Skip to content

Commit 2b4a362

Browse files
committed
avoid recursive quoteIdentifier call
each $part does not contain ".", so quoteSingleIdentifier may be called directly thus avoiding recursive strpos checks.
1 parent 16cafe1 commit 2b4a362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ public function getCreateSchemaSQL($schemaName)
18251825
public function quoteIdentifier($str)
18261826
{
18271827
if (strpos($str, ".") !== false) {
1828-
$parts = array_map(array($this, "quoteIdentifier"), explode(".", $str));
1828+
$parts = array_map(array($this, "quoteSingleIdentifier"), explode(".", $str));
18291829

18301830
return implode(".", $parts);
18311831
}

0 commit comments

Comments
 (0)