[PHP-DEV] Bug #486: ODBC odbc_result_into & CURSOR_DYNAMIC From: philip <email protected>
Date: 06/26/98

From: philip <email protected>
Operating system: Linux Elf-i586
PHP version: 3.0 Final Release
PHP Bug Type: Feature/Change Request
Bug description:
After upgrading iODBC driver , mysql_odbc driver , and
php 3.0 under linux there has been a change in functionality
regarding odbc_result_into.

The unified odbc driver now expects all iODBC drivers to have extended fetch
capability. As the mysql_odbc driver only supports STATIC cursors
the unified_odbc.c code now aborts the execute command because the
cursor type dynamic cannot be set.
Changing the compile to default to no extended fetch works around
this problem but now requires one less parameter on the
odbc_result_into call.

Requested Changes:

        1. For odbc_fetch_into takes three arguments. Record number is
        ignored if no extended_fetch. This allows portability of code.

        2. For unified_odbc:PHP3_UODBC_DO code passively ignores failed request to set
        dynamic cursors and functions if extended fetch not avaliable.

Note:
 Although mysql only support static cursors it does allow referencing
 rows within the data set returned.