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