This commit is contained in:
2026-07-06 21:25:47 +08:00
parent efb3077bec
commit 06de50699a
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -181,12 +181,10 @@ class Command extends Component
}
if (($execute = $prepare->execute($this->params)) === false) {
if ($prepare->execute($this->params) === false) {
throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]);
}
var_dump($execute);
$prepare->closeCursor();
$result = $client->lastInsertId();
+1 -1
View File
@@ -221,7 +221,7 @@ class SqlBuilder extends Component
*/
public function all(): string
{
return $this->makeSelect($this->query) . ' ' . $this->make() . ' ' . $this->makeLimit();
return $this->makeSelect($this->query->from) . ' ' . $this->make() . ' ' . $this->makeLimit();
}