This commit is contained in:
2023-04-05 13:49:17 +08:00
parent f6c87aadaf
commit 81c2b0e114
+1
View File
@@ -194,6 +194,7 @@ class Connection extends Component
*/ */
public function getPdo(bool $restore = false): PDO public function getPdo(bool $restore = false): PDO
{ {
return $this->getMasterClient();
if ($restore === true) { if ($restore === true) {
return Context::set($this->cds, $this->getMasterClient()); return Context::set($this->cds, $this->getMasterClient());
} }