Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
821ab27
)
MDL-50633 dml: deprecated var replaced in mysql 5.7
author
Marina Glancy
<marina@moodle.com>
Mon, 2 Nov 2015 09:52:59 +0000
(17:52 +0800)
committer
Marina Glancy
<marina@moodle.com>
Mon, 2 Nov 2015 13:05:20 +0000
(21:05 +0800)
Thanks to Charles Verge for providing a patch
lib/dml/mysqli_native_moodle_database.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/dml/mysqli_native_moodle_database.php
b/lib/dml/mysqli_native_moodle_database.php
index
70e8a6e
..
1874481
100644
(file)
--- a/
lib/dml/mysqli_native_moodle_database.php
+++ b/
lib/dml/mysqli_native_moodle_database.php
@@
-180,13
+180,13
@@
class mysqli_native_moodle_database extends moodle_database {
return $engine;
}
- //
get the default database engine
- $sql = "SELECT @@
storage_
engine";
+ //
Get the default database engine.
+ $sql = "SELECT @@
default_storage_engine
engine";
$this->query_start($sql, NULL, SQL_QUERY_AUX);
$result = $this->mysqli->query($sql);
$this->query_end($result);
if ($rec = $result->fetch_assoc()) {
- $engine = $rec['
@@storage_
engine'];
+ $engine = $rec['engine'];
}
$result->close();