some odbc_*() functions incompatible with Oracle ODBC driver
| Bug #42414 | some odbc_*() functions incompatible with Oracle ODBC driver | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-08-24 13:11 UTC | Modified: | 2012-02-28 17:53 UTC |
|
||||||||||
| From: | jhml at gmx dot net | Assigned: | sixd (profile) | |||||||||||
| Status: | Closed | Package: | ODBC related | |||||||||||
| PHP Version: | 5.2.3 | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2007-08-24 13:11 UTC] jhml at gmx dot net
Description: ------------ The Oracle ODBC driver expects NULL as the second parameter to the SQLColumns() C function, otherwise, it will throw an error. With PHP 5.2.3 it's not possibly to specify NULL, though.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-08-24 13:13 UTC] jhml at gmx dot net
Proposed patch: --- php-5.2.3/ext/odbc/php_odbc.c 2007-03-13 01:04:38.000000000 +0100 +++ php-5.2.3-fix_odbc_columns/ext/odbc/php_odbc.c 2007-08-24 14:57:41.000000000 +0200 @@ -2947,6 +2947,11 @@ */ if (table && strlen(table) && schema && !strlen(schema)) schema = NULL; + /* + * Needed to make Oracle happy (Johann Hanne) + */ + if (cat && !strlen(cat)) cat = NULL; + rc = SQLColumns(result->stmt, cat, cat_len, schema, schema_len,[2007-08-24 13:15 UTC] jani@php.net
[2007-08-24 13:38 UTC] jhml at gmx dot net
[2007-08-24 16:27 UTC] jhml at gmx dot net
[2007-08-25 11:08 UTC] jhml at gmx dot net
[2007-08-28 09:12 UTC] jhml at gmx dot net
[2009-05-14 01:32 UTC] felipe@php.net
[2009-05-14 17:31 UTC] felipe@php.net
[2012-02-28 17:53 UTC] sixd@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sixd
[2012-02-28 17:53 UTC] sixd@php.net