@@ -24,8 +24,7 @@ |
||
| 24 | 24 | $query = ($fast && $this->driver->minVersion(5)) ? |
| 25 | 25 | "SELECT TABLE_NAME AS Name, ENGINE AS Engine, TABLE_COMMENT AS Comment " . |
| 26 | 26 | "FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE() " . |
| 27 | - ($table != "" ? "AND TABLE_NAME = " . $this->driver->quote($table) : "ORDER BY Name") : |
|
| 28 | - "SHOW TABLE STATUS" . ($table != "" ? " LIKE " . $this->driver->quote(addcslashes($table, "%_\\")) : ""); |
|
| 27 | + ($table != "" ? "AND TABLE_NAME = " . $this->driver->quote($table) : "ORDER BY Name") : "SHOW TABLE STATUS" . ($table != "" ? " LIKE " . $this->driver->quote(addcslashes($table, "%_\\")) : ""); |
|
| 29 | 28 | return $this->driver->rows($query); |
| 30 | 29 | } |
| 31 | 30 | |
@@ -77,10 +77,10 @@ |
||
| 77 | 77 | |
| 78 | 78 | $foreignKey->database = $this->driver->unescapeId($match[4] != "" ? $match[3] : $match[4]); |
| 79 | 79 | $foreignKey->table = $this->driver->unescapeId($match[4] != "" ? $match[4] : $match[3]); |
| 80 | - $foreignKey->source = array_map(function ($idf) { |
|
| 80 | + $foreignKey->source = array_map(function($idf) { |
|
| 81 | 81 | return $this->driver->unescapeId($idf); |
| 82 | 82 | }, $source[0]); |
| 83 | - $foreignKey->target = array_map(function ($idf) { |
|
| 83 | + $foreignKey->target = array_map(function($idf) { |
|
| 84 | 84 | return $this->driver->unescapeId($idf); |
| 85 | 85 | }, $target[0]); |
| 86 | 86 | $foreignKey->onDelete = $match[6] ?: "RESTRICT"; |