mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-17020 dml: native pgsql driver - minor coding style improvement
This commit is contained in:
parent
dd2ce45907
commit
7063c802fa
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class pgsql_native_moodle_database extends moodle_database {
|
||||||
}
|
}
|
||||||
pg_set_client_encoding($this->pgsql, 'utf8');
|
pg_set_client_encoding($this->pgsql, 'utf8');
|
||||||
// find out the bytea oid
|
// find out the bytea oid
|
||||||
$sql = "select oid from pg_type where typname = 'bytea'";
|
$sql = "SELECT oid FROM pg_type WHERE typname = 'bytea'";
|
||||||
$result = pg_query($this->pgsql, $sql);
|
$result = pg_query($this->pgsql, $sql);
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue