This commit is contained in:
2023-04-02 01:23:48 +08:00
parent 555ef93965
commit 69648e3373
+1 -1
View File
@@ -170,7 +170,7 @@ class Command extends Component
{
$pdo = $this->db->getSlaveClient();
try {
if (($statement = $pdo->prepare($this->sql)) === false) {
if (($statement = $pdo->query($this->sql)) === false) {
throw new Exception($pdo->errorInfo()[1]);
}
foreach ($this->params as $key => $param) {