改名
This commit is contained in:
@@ -120,7 +120,6 @@ class Command extends Component
|
||||
$time = microtime(true);
|
||||
if ($type === static::EXECUTE) {
|
||||
$result = $this->db->getConnect($this->sql)->execute($this->sql,$this->params);
|
||||
var_dump($result);
|
||||
} else {
|
||||
$result = $this->search($type);
|
||||
}
|
||||
|
||||
+4
-1
@@ -3,8 +3,8 @@
|
||||
namespace Database\Mysql;
|
||||
|
||||
use Exception;
|
||||
use Kiri\Context;
|
||||
use Kiri\Abstracts\Logger;
|
||||
use Kiri\Context;
|
||||
use Kiri\Kiri;
|
||||
use Kiri\Pool\StopHeartbeatCheck;
|
||||
use PDOStatement;
|
||||
@@ -258,6 +258,9 @@ class PDO implements StopHeartbeatCheck
|
||||
}
|
||||
$result = (int)$pdo->lastInsertId();
|
||||
$prepare->closeCursor();
|
||||
if ($result == 0) {
|
||||
return true;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user