Edit report at https://bugs.php.net/bug.php?id=42414&edit=1

 ID:                 42414
 Updated by:         s...@php.net
 Reported by:        jhml at gmx dot net
 Summary:            some odbc_*() functions incompatible with Oracle
                     ODBC driver
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            ODBC related
 Operating System:   Linux
 PHP Version:        5.2.3
-Assigned To:        
+Assigned To:        sixd
 Block user comment: N
 Private report:     N

 New Comment:

Closing based on Felipe's comment that he committed a fix.


Previous Comments:
------------------------------------------------------------------------
[2009-05-14 17:31:00] fel...@php.net

I've committed a better fix, now it's allowed to pass NULL.

------------------------------------------------------------------------
[2009-05-14 01:32:25] fel...@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch.

------------------------------------------------------------------------
[2007-08-28 09:12:49] jhml at gmx dot net

I have examined all functions which take the cat argument now, which 
are:
- odbc_tables
- odbc_columns
- odbc_columnprivileges
- odbc_foreignkeys
- odbc_primarykeys
- odbc_procedurecolumns
- odbc_procedures
- odbc_specialcolumns
- odbc_statistics
- odbc_tableprivileges

Most of these functions need to have cat == NULL (as long as one 
doesn't want to specify a catalog) with the Oracle ODBC driver. 
Interestingly, the follow functions don't have this requirement:
- odbc_tables
- odbc_procedurecolumns
- odbc_procedures

So I have created a patch now which sets cat to NULL for the 
functions which require it. The patch is available at 
http://www.bettina-attack.de/jonny/php-5.2.3-oracle_compat.diff

------------------------------------------------------------------------
[2007-08-25 11:08:41] jhml at gmx dot net

Argh. Same problem with odbc_primarykeys(). Will examine the other 
functions also and create a new patch...

------------------------------------------------------------------------
[2007-08-24 16:27:08] jhml at gmx dot net

Tested with MyODBC as well, no problems!

------------------------------------------------------------------------


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=42414


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=42414&edit=1

Reply via email to