ADOdb Library for PHP Manual
Prev ADODB_ASSOC_CASE Next

ADODB_ASSOC_CASE

You can control the associative fetch case for certain drivers which behave differently. For the postgres, sybase, oci8po, mssql, odbc and ibase drivers and all drivers derived from them, ADODB_ASSOC_CASE will by default generate recordsets where the field name keys are lower-cased. Use the constant ADODB_ASSOC_CASE to change the case of the keys. There are 3 possible values:

0 = assoc lowercase field names. $rs->fields['orderid']
1 = assoc uppercase field names. $rs->fields['ORDERID']
2 = use native-case field names. $rs->fields['OrderID'] -- this is the default since ADOdb 2.90

To use it, declare it before you include adodb.inc.php.

    define('ADODB_ASSOC_CASE', 2); # use native-case for ADODB_FETCH_ASSOC
    
include('adodb.inc.php');


Prev Home Next
$ADODB_FETCH_MODE Up ADOConnection

Sponsored by phpLens