Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w31_MDL-27685_m21_pglike' of git://github.com/skodak/mo…

…odle into MOODLE_21_STABLE
  • Loading branch information...
commit cf8cc1bab17c9cbef8245f6d96e56f4600142ef6 2 parents 6b9c6cc + f6589dd
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dml/pgsql_native_moodle_database.php
View
4 lib/dml/pgsql_native_moodle_database.php
@@ -277,12 +277,12 @@ public function get_tables($usecache=true) {
return $this->tables;
}
$this->tables = array();
- $prefix = str_replace('_', '\\\\_', $this->prefix);
+ $prefix = str_replace('_', '|_', $this->prefix);
// Get them from information_schema instead of catalog as far as
// we want to get only own session temp objects (catalog returns all)
$sql = "SELECT table_name
FROM information_schema.tables
- WHERE table_name LIKE '$prefix%'
+ WHERE table_name LIKE '$prefix%' ESCAPE '|'
AND table_type IN ('BASE TABLE', 'LOCAL TEMPORARY')";
$this->query_start($sql, null, SQL_QUERY_AUX);
$result = pg_query($this->pgsql, $sql);
Please sign in to comment.
Something went wrong with that request. Please try again.