From: [EMAIL PROTECTED] Operating system: Solaris 8 PHP version: 4.2.0 PHP Bug Type: ODBC related Bug description: PHP & libiodbc-3.0.5 return garbage column names with ingres
Use odbc_result_all or odbc_field_name to get the column names from odbc_exec call to an ingres_ii database via libiodbc-3.0.5. The resulting column names are in fact portions of the original SQL query! Referencing by column number works. I am unable to test this with another database via libiodbc, however I can reproduce it using two different ODBC drivers. Using the php native drivers to ingres does work (but is of course still experimental). Configure line below: ./configure --with-ldap=/usr/local/ --enable-libgcc --enable-ftp --with-mysql=/usr/local/mysql --with-ingres=/db/ingres --with-iodbc=/usr/local/src/libiodbc-3.0.5 --enable-discard-path --enable-wddx --enable-track-vars --enable-sysvsem --with-nsapi=/db/www/netscape/server4 --with-oci8=/oracle/home/product/8.1.7 -- Edit bug report at http://bugs.php.net/?id=16782&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16782&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16782&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16782&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16782&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16782&r=support Expected behavior: http://bugs.php.net/fix.php?id=16782&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16782&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16782&r=submittedtwice