Skip to content

Commit

Permalink
MDL-19010 reverting last commit- DML must throw exceptions - fix the …
Browse files Browse the repository at this point in the history
…calling code
  • Loading branch information
skodak committed May 6, 2009
1 parent eb2761f commit e0eda20
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/dml/mysqli_native_moodle_database.php
Expand Up @@ -513,13 +513,10 @@ public function get_recordset_sql($sql, array $params=null, $limitfrom=0, $limit

$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) {
Expand Down

0 comments on commit e0eda20

Please sign in to comment.