|
@@ -92,15 +92,12 @@ class Dm extends PDOConnection
|
|
|
*/
|
|
|
public function getTables(string $dbName = ''): array
|
|
|
{
|
|
|
- $sql = !empty($dbName) ? 'SHOW TABLES FROM ' . $dbName : 'SHOW TABLES ';
|
|
|
- $pdo = $this->getPDOStatement($sql);
|
|
|
+ $pdo = $this->linkID->query("select table_name from all_tables");
|
|
|
$result = $pdo->fetchAll(PDO::FETCH_ASSOC);
|
|
|
$info = [];
|
|
|
-
|
|
|
foreach ($result as $key => $val) {
|
|
|
$info[$key] = current($val);
|
|
|
}
|
|
|
-
|
|
|
return $info;
|
|
|
}
|
|
|
|