lgy 2 months ago
parent
commit
2003e4bf1f

+ 1 - 1
jcjyhr/vendor/topthink/think-orm/src/db/BaseQuery.php

@@ -1318,7 +1318,7 @@ abstract class BaseQuery
             // 主键条件分析
             $this->parsePkWhere($data);
         }
-
+var_dump($this);die;
         $resultSet = $this->connection->select($this);
         var_dump($resultSet);die;
 

+ 1 - 4
jcjyhr/vendor/topthink/think-orm/src/db/connector/Dm.php

@@ -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;
     }