MDL-30147 dml - mysql and no params now behaving "standard"

This commit is contained in:
Eloy Lafuente (stronk7) 2011-11-12 22:27:24 +01:00 committed by Petr Skoda
parent a8097d6dda
commit 870896eca1
2 changed files with 19 additions and 17 deletions

View file

@ -435,7 +435,7 @@ class mysqli_native_moodle_database extends moodle_database {
$sql = "SHOW COLUMNS FROM {$this->prefix}$table";
$this->query_start($sql, null, SQL_QUERY_AUX);
$result = $this->mysqli->query($sql);
$this->query_end($result);
$this->query_end(true); // Don't want to throw anything here ever. MDL-30147
if ($result === false) {
return array();