fixing silyl property_exists() conversion + coding style

This commit is contained in:
Petr Skoda
2010-09-17 20:32:34 +00:00
parent d68c56f2c6
commit b6265b7e37
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -177,14 +177,14 @@ class pgsql_native_moodle_database extends moodle_database {
$result = pg_query($this->pgsql, $sql);
$this->query_end($result);
$this->bytea_oid = pg_fetch_result($result, 0);
$this->bytea_oid = pg_fetch_result($result, 0, 0);
pg_free_result($result);
if ($this->bytea_oid === false) {
$this->pgsql = null;
throw new dml_connection_exception('Can not read bytea type.');
}
// Connection stabilished and configured, going to instantiate the temptables controller
// Connection stabilised and configured, going to instantiate the temptables controller
$this->temptables = new pgsql_native_moodle_temptables($this);
return true;