Skip to content
Browse files

MDL-34010 Update diagnose() function to query information_schema.tables

  • Loading branch information...
1 parent 2cbdaa7 commit 445be5c6cd8c38f7f7085f3ecce77b6f8c121c9c @micaherne micaherne committed with skodak Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dml/mysqli_native_moodle_database.php
View
2 lib/dml/mysqli_native_moodle_database.php
@@ -235,7 +235,7 @@ public function get_configuration_hints() {
public function diagnose() {
$sloppymyisamfound = false;
$prefix = str_replace('_', '\\_', $this->prefix);
- $sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
+ $sql = "SELECT Engine FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = DATABASE() AND table_name LIKE BINARY '$prefix%'";
$this->query_start($sql, null, SQL_QUERY_AUX);
$result = $this->mysqli->query($sql);
$this->query_end($result);

0 comments on commit 445be5c

Please sign in to comment.
Something went wrong with that request. Please try again.