This commit is contained in:
2024-01-10 17:43:10 +08:00
parent 88fb563c99
commit d036e440cd
2 changed files with 36 additions and 18 deletions
+2
View File
@@ -117,6 +117,7 @@ class Command extends Component
{
$client = $this->connection->getConnection();
try {
$this->connection->println($this->sql, $this->params);
if (($prepare = $client->prepare($this->sql)) === false) {
throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $client->errorInfo()[2]);
}
@@ -157,6 +158,7 @@ class Command extends Component
{
$client = $this->connection->getConnection();
try {
$this->connection->println($this->sql, $this->params);
if (($prepare = $client->prepare($this->sql)) === false) {
throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]);
}