Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2a7c2fa9
Commit
2a7c2fa9
authored
Jun 27, 2009
by
Dries
Browse files
- Patch
#499794
by Berdir: made protected method public because it is called as a public method.
parent
7613aa59
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/database/database.inc
View file @
2a7c2fa9
...
...
@@ -451,7 +451,7 @@ public function prefixTables($sql) {
* @return
* A PDO prepared statement ready for its execute() method.
*/
p
rotected
function
prepareQuery
(
$query
,
$cache
=
TRUE
)
{
p
ublic
function
prepareQuery
(
$query
,
$cache
=
TRUE
)
{
$query
=
$this
->
prefixTables
(
$query
);
if
(
empty
(
$this
->
preparedStatements
[
$query
]))
{
// Call PDO::prepare.
...
...
includes/database/sqlite/database.inc
View file @
2a7c2fa9
...
...
@@ -157,7 +157,7 @@ public function mapConditionOperator($operator) {
return
NULL
;
}
p
rotected
function
prepareQuery
(
$query
,
$cache
=
TRUE
)
{
p
ublic
function
prepareQuery
(
$query
,
$cache
=
TRUE
)
{
// It makes no sense to use the static prepared statement cache here,
// because all the work in our implementation is done in
// DatabaseStatement_sqlite::execute() and cannot be cached.
...
...
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