mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'w15_MDL-32368_m23_bytea' of git://github.com/skodak/moodle
This commit is contained in:
commit
7475638c2a
1 changed files with 2 additions and 2 deletions
|
@ -179,8 +179,8 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||||
pg_set_client_encoding($this->pgsql, 'utf8');
|
pg_set_client_encoding($this->pgsql, 'utf8');
|
||||||
$this->query_end(true);
|
$this->query_end(true);
|
||||||
|
|
||||||
// find out the bytea oid
|
// set bytea encoding to old format and find out the bytea oid
|
||||||
$sql = "SELECT oid FROM pg_type WHERE typname = 'bytea'";
|
$sql = "SET bytea_output = 'escape'; SELECT oid FROM pg_type WHERE typname = 'bytea'";
|
||||||
$this->query_start($sql, null, SQL_QUERY_AUX);
|
$this->query_start($sql, null, SQL_QUERY_AUX);
|
||||||
$result = pg_query($this->pgsql, $sql);
|
$result = pg_query($this->pgsql, $sql);
|
||||||
$this->query_end($result);
|
$this->query_end($result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue