This commit is contained in:
as2252258@163.com
2021-02-23 02:13:57 +08:00
parent 82a83d1afc
commit 779940b151
+1 -1
View File
@@ -221,7 +221,7 @@ class Command extends Component
if (!($connect instanceof PDO)) {
return null;
}
var_dump($connect, $this->sql);
var_dump($connect->getAttribute(PDO::ATTR_SERVER_INFO), $this->sql);
if (!($query = $connect->query($this->sql))) return null;
if ($type === static::ROW_COUNT) {
$result = $query->rowCount();