This commit is contained in:
wangyidong
2024-07-05 15:55:43 +08:00
committed by 田淑杰
parent dec742fc33
commit 68ce0e21bb
+1 -1
View File
@@ -40,8 +40,8 @@ class installModel extends model
*/
public function getDatabaseVersion()
{
if($this->config->db->driver != 'mysql') return 8;
if(empty($this->dbh)) $this->dbh = $this->connectDB();
if($this->config->db->driver != 'mysql') return 8;
$sql = "SELECT VERSION() AS version";
$result = $this->dbh->query($sql)->fetch();