|
@@ 758-775 (lines=18) @@
|
| 755 |
|
|
| 756 |
|
$doctrineWrappedConnection = $this->doctrine_connection->getWrappedConnection(); |
| 757 |
|
|
| 758 |
|
if ($this->isDoctrineMySQLiConnection()) { |
| 759 |
|
/* @var $doctrineWrappedConnection \Doctrine\DBAL\Driver\Mysqli\MysqliConnection */ |
| 760 |
|
|
| 761 |
|
$this->mysqli_link = $doctrineWrappedConnection->getWrappedResourceHandle(); |
| 762 |
|
|
| 763 |
|
$this->connected = $this->doctrine_connection->isConnected(); |
| 764 |
|
|
| 765 |
|
if (!$this->connected) { |
| 766 |
|
$error = 'Error connecting to mysql server: ' . $this->doctrine_connection->errorInfo(); |
| 767 |
|
$this->debug->displayError($error, false); |
| 768 |
|
|
| 769 |
|
throw new DBConnectException($error, 101); |
| 770 |
|
} |
| 771 |
|
|
| 772 |
|
$this->set_charset($this->charset); |
| 773 |
|
|
| 774 |
|
return $this->isReady(); |
| 775 |
|
} |
| 776 |
|
|
| 777 |
|
if ($this->isDoctrinePDOConnection()) { |
| 778 |
|
$this->mysqli_link = null; |
|
@@ 777-792 (lines=16) @@
|
| 774 |
|
return $this->isReady(); |
| 775 |
|
} |
| 776 |
|
|
| 777 |
|
if ($this->isDoctrinePDOConnection()) { |
| 778 |
|
$this->mysqli_link = null; |
| 779 |
|
|
| 780 |
|
$this->connected = $this->doctrine_connection->isConnected(); |
| 781 |
|
|
| 782 |
|
if (!$this->connected) { |
| 783 |
|
$error = 'Error connecting to mysql server: ' . $this->doctrine_connection->errorInfo(); |
| 784 |
|
$this->debug->displayError($error, false); |
| 785 |
|
|
| 786 |
|
throw new DBConnectException($error, 101); |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
$this->set_charset($this->charset); |
| 790 |
|
|
| 791 |
|
return $this->isReady(); |
| 792 |
|
} |
| 793 |
|
} |
| 794 |
|
|
| 795 |
|
$flags = null; |