2010年5月28日星期五

[fw-db] Re: zf:accessing db2 table on system i

Ican't believe that there is nobody in the community that can explain this
fatal error, as a consequence of running the folloing code
"$config = array(
'adapter' => 'Db2',
'params' => array(
'username' => 'userid',
'password' => 'mypass',
'dbname' => 'mysystemname',
'adapterNamespace' => 'ZendC_Db_adapter',
'driver_options' => array(
"i5_lib" => "LEVA",
"i5_naming" => "DB2_I5_NAMING_ON")
)
);
$config = new Zend_Config($config);

try {
$db = Zend_Db::factory($config);
$db->getConnection();
} catch (Zend_Db_Adapter_Exception $e) {
echo" perhaps a failed login credential, or perhaps the RDBMS is not
running";
} catch (Zend_Exception $e) {
echo " perhaps factory() failed to load the specified Adapter class";
}"
when istantiating db2 (Zend_Db::factory).
Regards.

--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/zf-accessing-db2-table-on-system-i-tp2226165p2234426.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: