PDO and base_connector

I tried to use connector with PDO. I believe you have a bug in base_connector.php on line 305:

$this->sql = new $this->names["db_class"]($db,$this->config);

$this->names[“db_class”] equals “PDO” but PDO constructor takes 3 param: dsn, user and pass.
$db parameter is allready a PDO object.

Expected init code is something like

$dbh = new PDO('mysql:host='.$mysql_server.';dbname='.$mysql_db, $mysql_user, $mysql_pass); $grid = new GridConnector($dbh,"PDO");

connector uses already created connection, so it need only result object, not the connection parameters.

Fatal error:  Call to a member function select() on a non-object in connectors/base_connector.php on line 416

Connector->sql is null;

15:58:14 10/08/10 PHP [warning] PDO::__construct() expects parameter 1 to be string, object given in [...]connectors/base_connector.php at line 305

Be sure that codebase/db_pdo.php is included
Otherwise, DB wrapper class will not be located, and error similar to the above one will occur.