modify
This commit is contained in:
@@ -221,7 +221,6 @@ class Command extends Component
|
||||
if (!($connect instanceof PDO)) {
|
||||
return null;
|
||||
}
|
||||
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();
|
||||
|
||||
@@ -102,6 +102,8 @@ class Connection extends Component
|
||||
$connections->initConnections('mysql', $this->slaveConfig['cds'], false, $this->maxNumber);
|
||||
$connections->setTimeout($this->timeout);
|
||||
|
||||
var_dump($this->cds, $this->slaveConfig['cds']);
|
||||
|
||||
return $this->getPdo($sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user