This commit is contained in:
2023-04-07 21:13:01 +08:00
parent 12d3d05001
commit 478106c6f7
+1
View File
@@ -97,6 +97,7 @@ class Command extends Component
throw new Exception($client->errorInfo()[1]);
}
foreach ($this->params as $key => $param) {
var_dump($this->sql, $key, $param);
$prepare->bindParam($key, $param, PDO::PARAM_STR | PDO::PARAM_INT);
}
return $prepare->fetch(PDO::FETCH_ASSOC);