This commit is contained in:
2026-06-30 22:54:04 +08:00
parent 218a38da48
commit ffc2af69da
+4 -4
View File
@@ -148,8 +148,7 @@ class Command extends Component
}
}
$errorMsg = 'Max retry exceeded for SQL: ' . $this->sql;
return $this->getLogger()->logCategory($errorMsg, 'mysql');
return $this->getLogger()->logCategory('Max retry exceeded for SQL: ' . $this->sql, 'mysql');
}
@@ -194,6 +193,8 @@ class Command extends Component
return $prepare->rowCount();
}
var_dump($this->sql, $result);
$this->connection->release($client);
return $result == 0 ? $prepare->rowCount() : (int)$result;
} catch (Throwable $throwable) {
@@ -213,8 +214,7 @@ class Command extends Component
}
}
$errorMsg = 'Max retry exceeded for SQL: ' . $this->sql;
return $this->getLogger()->logCategory($errorMsg, 'mysql');
return $this->getLogger()->logCategory('Max retry exceeded for SQL: ' . $this->sql, 'mysql');
}