eee
This commit is contained in:
+1
-3
@@ -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]);
|
throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($execute);
|
|
||||||
|
|
||||||
$prepare->closeCursor();
|
$prepare->closeCursor();
|
||||||
|
|
||||||
$result = $client->lastInsertId();
|
$result = $client->lastInsertId();
|
||||||
|
|||||||
+1
-1
@@ -221,7 +221,7 @@ class SqlBuilder extends Component
|
|||||||
*/
|
*/
|
||||||
public function all(): string
|
public function all(): string
|
||||||
{
|
{
|
||||||
return $this->makeSelect($this->query) . ' ' . $this->make() . ' ' . $this->makeLimit();
|
return $this->makeSelect($this->query->from) . ' ' . $this->make() . ' ' . $this->makeLimit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user