Use Firebird Database to Lookup Data I have installed my drupal in postgres. I've been using multiple databases in my customized module. Below is my settings.php:

$databases = array (
    'default' =&gt; 
        array (
            'default' =&gt; 
                array (
                    'database' =&gt; 'drupal-7.34',
                    'username' =&gt; 'drupal-7.34',
                    'password' =&gt; 'drupal-7.34',
                    'host' =&gt; 'localhost',
                    'port' =&gt; '',
                    'driver' =&gt; 'pgsql',
                    'prefix' =&gt; '',
                ),
            'import' =&gt;
                array (
                    'database' =&gt; 'enrollment',
                    'username' =&gt; 'postgres',
                    'password' =&gt; '',
                    'host' =&gt; 'localhost',
                    'port' =&gt; '',
                    'driver' =&gt; 'pgsql',
                    'prefix' =&gt; '',
                ),
            'import_employee' =&gt;
                array (
                    'database' =&gt; 'csudbnew',
                    'username' =&gt; 'sysdba',
                    'password' =&gt; 'masterkey',
                    'host' =&gt; 'localhost',
                    'port' =&gt; '',
                    'driver' =&gt; 'firebird',
                    'prefix' =&gt; '',
                ),
        ),
);


Below is my code in executing the query:

 $query = db_select('EMPLOYEES', 't1',array('target' =&gt; 'import_employee'));  
 $result = $query
     -&gt;fields('t1', array('LASTNAME'))   
     -&gt;condition('t1.EMPLOYEENUMBER','1016','=')    
     -&gt;execute();


This is where I get the error.



I aready enabled extension=php_pdo_firebird.dll in my php.inifile. What should I do next? I can query in my postgres databases except in firebird. Do I have to do more configuration?

Ive been following this tutorial. I downloaded the zip file in the site and unzip it in my drupal\includes\database\firebird.
The error is in the following line:

$query = db_select('EMPLOYEES', 't1',array('target' =&gt; 'import_employee')); 


It is selecting import_employee as target, and default as key, but in your settings.php file you have a default target with a import_employee key. Failing to find the definition for the target you select, Drupal fallbacks to using default as target and (without being instructed differently), to use default also as key. 

You can do one of the following:


Edit your settings.php file so that it contains information about the import_employee target and its default key. Keep in mind that the information about the database is given as $database['&lt;target&gt;']['&lt;key&gt;'], not $database['&lt;key&gt;']['&lt;target&gt;'].
Change your code to always call db_set_active() before your query.