#41882 [Asn->Fbk]: PDO_ODBC && SysbaseASA && ATTR_PERSISTENT
| From: | jani@php.net | Date: | Sat, 25 Apr 2009 14:45:22 +0000 |
| Subject: | #41882 [Asn->Fbk]: PDO_ODBC && SysbaseASA && ATTR_PERSISTENT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136258@lists.php.net to get a copy of this message | ||
ID: 41882
Updated by: jani@php.net
Reported By: danil dot megrabjan at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: PDO related
Operating System: SLES 10
PHP Version: 5.2.3
Assigned To: wez
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
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\warnings.
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