ID: 41882
Updated by: [EMAIL PROTECTED]
Reported By: danil dot megrabjan at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: PDO related
Operating System: SLES 10
PHP Version: 5.2.3
-Assigned To:
+Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2007-07-03 06:35:58] danil dot megrabjan at gmail dot com
Description:
------------
When i try connect to SybaseASA9 throw the PDO_ODBC with
ATTR_PERSISTENT flag I have an error message from debugger. In all,
connection after executing php script, remain valid (see in
SybaseCentral). And if we try again connect to DB later pdo_odbc uses
early establishment connection.
Reproduce code:
---------------
$dbc = new
PDO('odbc:Driver=SybaseASA;ServerName=web9;DatabaseName=dbweb;CharSet=utf8;ConnectionName=WebApp;CommLinks=tcpip(Host=dbserver.local;Port=8106)',
'bagroff', '777777', array(PDO::ATTR_PERSISTENT => true));
Expected result:
----------------
DB connect without error`s\warning`s.
Actual result:
--------------
Debug Warning: PHPDocument1 line 2 - PDO::__construct():
SQLSTATE[IM001]: Driver does not support this function: driver does not
support setting attributes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41882&edit=1