Skip to content

Commit

Permalink
[zendframework#2213] add imports or resolve classes by imports
Browse files Browse the repository at this point in the history
- Per comments on issue
  • Loading branch information
weierophinney committed Aug 22, 2012
1 parent a7d936e commit 32d81eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion library/Zend/Db/Adapter/Driver/Mysqli/Mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Zend\Db\Adapter\Driver\Mysqli;

use mysqli_stmt;
use Zend\Db\Adapter\Driver\DriverInterface;
use Zend\Db\Adapter\Exception;

Expand Down Expand Up @@ -159,7 +160,7 @@ public function createStatement($sqlOrResource = null)
*/

$statement = clone $this->statementPrototype;
if ($sqlOrResource instanceof \mysqli_stmt) {
if ($sqlOrResource instanceof mysqli_stmt) {
$statement->setResource($sqlOrResource);
} else {
if (is_string($sqlOrResource)) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Driver/Pdo/Pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function getConnection()
public function createStatement($sqlOrResource = null)
{
$statement = clone $this->statementPrototype;
if ($sqlOrResource instanceof \PDOStatement) {
if ($sqlOrResource instanceof PDOStatement) {
$statement->setResource($sqlOrResource);
} else {
if (is_string($sqlOrResource)) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Driver/Sqlsrv/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function execute($sql)
}

if (!$this->driver instanceof Sqlsrv) {
throw new \RuntimeException('Connection is missing an instance of Sqlsrv');
throw new Exception\RuntimeException('Connection is missing an instance of Sqlsrv');
}

$returnValue = sqlsrv_query($this->resource, $sql);
Expand Down

0 comments on commit 32d81eb

Please sign in to comment.