This commit is contained in:
2023-04-07 21:23:38 +08:00
parent 33fa378018
commit 2170ea7d29
+1 -1
View File
@@ -97,7 +97,7 @@ class Command extends Component
throw new Exception($client->errorInfo()[1]); throw new Exception($client->errorInfo()[1]);
} }
foreach ($this->params as $key => $param) { foreach ($this->params as $key => $param) {
$prepare->bindParam($key, $param, PDO::PARAM_STR | PDO::PARAM_INT); $prepare->bindParam($key, $param);
} }
return $prepare->fetch(PDO::FETCH_ASSOC); return $prepare->fetch(PDO::FETCH_ASSOC);
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {