|
@@ 768-785 (lines=18) @@
|
| 765 |
|
|
| 766 |
|
$doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
| 767 |
|
|
| 768 |
|
if ($this->isDoctrineMySQLiConnection()) { |
| 769 |
|
\assert($doctrineWrappedConnection instanceof \Doctrine\DBAL\Driver\Mysqli\MysqliConnection); |
| 770 |
|
|
| 771 |
|
$this->mysqli_link = $doctrineWrappedConnection->getWrappedResourceHandle(); |
| 772 |
|
|
| 773 |
|
$this->connected = $this->doctrine_connection->isConnected(); |
| 774 |
|
|
| 775 |
|
if (!$this->connected) { |
| 776 |
|
$error = 'Error connecting to mysql server: ' . \print_r($this->doctrine_connection->errorInfo(), false); |
| 777 |
|
$this->debug->displayError($error, false); |
| 778 |
|
|
| 779 |
|
throw new DBConnectException($error, 101); |
| 780 |
|
} |
| 781 |
|
|
| 782 |
|
$this->set_charset($this->charset); |
| 783 |
|
|
| 784 |
|
return $this->isReady(); |
| 785 |
|
} |
| 786 |
|
|
| 787 |
|
if ($this->isDoctrinePDOConnection()) { |
| 788 |
|
$this->mysqli_link = null; |
|
@@ 787-802 (lines=16) @@
|
| 784 |
|
return $this->isReady(); |
| 785 |
|
} |
| 786 |
|
|
| 787 |
|
if ($this->isDoctrinePDOConnection()) { |
| 788 |
|
$this->mysqli_link = null; |
| 789 |
|
|
| 790 |
|
$this->connected = $this->doctrine_connection->isConnected(); |
| 791 |
|
|
| 792 |
|
if (!$this->connected) { |
| 793 |
|
$error = 'Error connecting to mysql server: ' . \print_r($this->doctrine_connection->errorInfo(), false); |
| 794 |
|
$this->debug->displayError($error, false); |
| 795 |
|
|
| 796 |
|
throw new DBConnectException($error, 101); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
$this->set_charset($this->charset); |
| 800 |
|
|
| 801 |
|
return $this->isReady(); |
| 802 |
|
} |
| 803 |
|
} |
| 804 |
|
|
| 805 |
|
$flags = null; |