mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-14679 dml/native_mysqli fixed column cache
This commit is contained in:
parent
7da83e81af
commit
12e09c6b8b
@ -355,7 +355,13 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
public function change_database_structure($sql) {
|
||||
$this->writes++;
|
||||
$this->print_debug($sql);
|
||||
return ($this->mysqli->query($sql) === TRUE);
|
||||
$result = $this->mysqli->query($sql);
|
||||
$this->reset_columns();
|
||||
if ($result === false) {
|
||||
$this->report_error($sql);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user