Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
extend #29 to cover all Zend\Db drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Youngblood committed Mar 25, 2013
1 parent 091c9aa commit b8c6e4b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 240 deletions.
47 changes: 0 additions & 47 deletions src/BjyProfiler/Db/Adapter/Driver/IbmDb2/ProfilingStatement.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/BjyProfiler/Db/Adapter/Driver/Mysqli/ProfilingStatement.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/BjyProfiler/Db/Adapter/Driver/Oci8/ProfilingStatement.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/BjyProfiler/Db/Adapter/Driver/Pgsql/ProfilingStatement.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/BjyProfiler/Db/Adapter/Driver/Sqlsrv/ProfilingStatement.php

This file was deleted.

10 changes: 5 additions & 5 deletions src/BjyProfiler/Db/Adapter/ProfilingAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ public function injectProfilingStatementPrototype(array $options = array())
$driverName = get_class($driver);
switch ($driverName) {
case 'Zend\Db\Adapter\Driver\IbmDb2\IbmDb2':
$statementPrototype = new Driver\IbmDb2\ProfilingStatement();
$statementPrototype = new ZdbDriver\IbmDb2\Statement();
break;
case 'Zend\Db\Adapter\Driver\Mysqli\Mysqli':
$defaults = array('buffer_results' => false);
$options = array_intersect_key(array_merge($defaults, $options), $defaults);

$statementPrototype = new Driver\Mysqli\ProfilingStatement($options['buffer_results']);
$statementPrototype = new ZdbDriver\Mysqli\Statement($options['buffer_results']);
break;
case 'Zend\Db\Adapter\Driver\Oci8\Oci8':
$statementPrototype = new Driver\Oci8\ProfilingStatement();
$statementPrototype = new ZdbDriver\Oci8\Statement();
break;
case 'Zend\Db\Adapter\Driver\Sqlsrv\Sqlsrv':
$statementPrototype = new Driver\Sqlsrv\ProfilingStatement();
$statementPrototype = new ZdbDriver\Sqlsrv\Statement();
break;
case 'Zend\Db\Adapter\Driver\Pgsql\Pgsql':
$statementPrototype = new Driver\Pgsql\ProfilingStatement();
$statementPrototype = new ZdbDriver\Pgsql\Statement();
break;
case 'Zend\Db\Adapter\Driver\Pdo\Pdo':
default:
Expand Down

0 comments on commit b8c6e4b

Please sign in to comment.