* [error] fix code error.

This commit is contained in:
sunguangming
2025-05-22 08:43:54 +08:00
committed by 刘刚
parent 54546977e6
commit 9297be8f74
+3 -3
View File
@@ -2107,7 +2107,7 @@ class baseSQL
*/
public function __construct($table = '')
{
global $app, dbh;
global $app, $dbh;
$this->app = $app;
$this->dbh = $dbh;
$this->data = new stdclass();
@@ -2708,9 +2708,9 @@ class baseSQL
$this->dbh->exec("CREATE TEMPORARY TABLE IF NOT EXISTS {$tableName} (id int PRIMARY KEY)");
$this->dbh->exec("INSERT INTO {$tableName} VALUES {$rows}");
}
catch($PDOException $e)
catch(PDOException $e)
{
$message = $exception->getMessage() . ' ' . helper::checkDB2Repair($exception);
$message = $e->getMessage() . ' ' . helper::checkDB2Repair($e);
$this->app->triggerError($message, __FILE__, __LINE__);
}