Bug #68350 [Csd]: SQL_DESC_OCTET_LENGTH not supported by ADS ODBC driver
Edit report at https://bugs.php.net/bug.php?id=68350&edit=1
ID: 68350
Updated by: ab@php.net
Reported by: frederic dot marchal at wowtechnology dot com
Summary: SQL_DESC_OCTET_LENGTH not supported by ADS ODBC
driver
Status: Closed
Type: Bug
Package: ODBC related
PHP Version: 5.4.34
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
@frederic FYI i've applied your patch (in master also added a warning)for the sake of
compatibility. Seems the driver from the ticket #69381 has a real issue with this.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-04-27 14:43:39] ab@php.net
Related To: Bug #69381
------------------------------------------------------------------------
[2015-04-26 18:25:20] cmb@php.net
Related To: Bug #69381
------------------------------------------------------------------------
[2015-04-19 07:58:47] frederic dot marchal at wowtechnology dot com
Problem adequately solved by bug #69354.
------------------------------------------------------------------------
[2015-04-17 19:00:56] ab@php.net
@frederic, if it's fixed with #69354 as well - so that's great. The subsequent fixes to
the ext/odbc in the 5.5 branch could be of some interest for you, as well.
I think it's hardly going into 5.4 though, as it's more about ODBC 3.0 support and not
security. So probably you've two ways - either upgrading to at least 5.5 or patching 5.4
manually. Anyway seems this ticket is done now, please close it by chance.
Thanks.
------------------------------------------------------------------------
[2015-04-15 13:37:23] frederic dot marchal at wowtechnology dot com
The patch https://github.com/php/php-src/commit/b3a027d6103b69bb935431dbec2e59eb20454862
solves the problem for the ADS ODBC driver too.
Simply replacing SQLColAttributes with SQLColAttribute (without 's') does the trick.
So, this bug is similar to bug #69354 and the solution proposed there is better than my patch as it
addresses the cause of the problem instead of working around it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=68350
--
Edit this bug report at https://bugs.php.net/bug.php?id=68350&edit=1
Thread (10 messages)