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