...
|
...
|
@@ -57,8 +57,8 @@ class DbPool { |
|
|
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,
|
|
|
]
|
|
|
);
|
|
|
}catch (\PDOException $e){
|
|
|
logs($e->getMessage());
|
|
|
}catch (\Throwable $e){
|
|
|
logs($e->getMessage().$e->getTraceAsString());
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -85,7 +85,7 @@ class DbPool { |
|
|
try {
|
|
|
$query = $this->getClient()->prepare($sql);
|
|
|
$ret = $query->execute($params);
|
|
|
}catch (\PDOException $e){
|
|
|
}catch (\Throwable $e){
|
|
|
logs($e->getMessage().$e->getTraceAsString());
|
|
|
$ret = false;
|
|
|
}
|
...
|
...
|
|