Commit 2a7c2fa9 authored by Dries's avatar Dries
Browse files

- Patch #499794 by Berdir: made protected method public because it is called as a public method.

parent 7613aa59
...@@ -451,7 +451,7 @@ public function prefixTables($sql) { ...@@ -451,7 +451,7 @@ public function prefixTables($sql) {
* @return * @return
* A PDO prepared statement ready for its execute() method. * A PDO prepared statement ready for its execute() method.
*/ */
protected function prepareQuery($query, $cache = TRUE) { public function prepareQuery($query, $cache = TRUE) {
$query = $this->prefixTables($query); $query = $this->prefixTables($query);
if (empty($this->preparedStatements[$query])) { if (empty($this->preparedStatements[$query])) {
// Call PDO::prepare. // Call PDO::prepare.
......
...@@ -157,7 +157,7 @@ public function mapConditionOperator($operator) { ...@@ -157,7 +157,7 @@ public function mapConditionOperator($operator) {
return NULL; return NULL;
} }
protected function prepareQuery($query, $cache = TRUE) { public function prepareQuery($query, $cache = TRUE) {
// It makes no sense to use the static prepared statement cache here, // It makes no sense to use the static prepared statement cache here,
// because all the work in our implementation is done in // because all the work in our implementation is done in
// DatabaseStatement_sqlite::execute() and cannot be cached. // DatabaseStatement_sqlite::execute() and cannot be cached.
......
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