MDL-19010 reverting last commit- DML must throw exceptions - fix the calling code

This commit is contained in:
skodak 2009-05-06 10:39:51 +00:00
parent eb2761f856
commit e0eda20921

View File

@ -513,13 +513,10 @@ class mysqli_native_moodle_database extends moodle_database {
$this->query_start($sql, $params, SQL_QUERY_SELECT);
// no MYSQLI_USE_RESULT here, it would block write ops on affected tables
if ($result = $this->mysqli->query($rawsql, MYSQLI_STORE_RESULT)) {
$this->query_end($result);
$result = $this->mysqli->query($rawsql, MYSQLI_STORE_RESULT);
$this->query_end($result);
return $this->create_recordset($result);
} else {
return $result;
}
return $this->create_recordset($result);
}
protected function create_recordset($result) {