Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
zf
Commits
1a994aee
Commit
1a994aee
authored
Jun 19, 2015
by
Matthias Meusburger
Browse files
speedup Zend_Db quoteIdentifier
parent
e141dfba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
library/Zend/Db/Adapter/Abstract.php
library/Zend/Db/Adapter/Abstract.php
+4
-2
No files found.
library/Zend/Db/Adapter/Abstract.php
View file @
1a994aee
...
...
@@ -48,7 +48,7 @@ require_once 'Zend/Loader.php';
*/
abstract
class
Zend_Db_Adapter_Abstract
{
protected
static
$_quoted_identifiers
=
[];
/**
* User-provided configuration
*
...
...
@@ -970,8 +970,10 @@ abstract class Zend_Db_Adapter_Abstract
protected
function
_quoteIdentifier
(
$value
,
$auto
=
false
)
{
if
(
$auto
===
false
||
$this
->
_autoQuoteIdentifiers
===
true
)
{
if
(
isset
(
static
::
$_quoted_identifiers
[
$value
]))
return
static
::
$_quoted_identifiers
[
$value
];
$q
=
$this
->
getQuoteIdentifierSymbol
();
return
(
$q
.
str_replace
(
"
$q
"
,
"
$q$q
"
,
$value
)
.
$q
);
return
static
::
$_quoted_identifiers
[
$value
]
=
(
$q
.
str_replace
(
"
$q
"
,
"
$q$q
"
,
$value
)
.
$q
);
}
return
$value
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment