From 8e6a09bd2bb7b5ed17952c2afd9b7afd06691b11 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 20 Sep 2006 22:03:45 +0000 Subject: [PATCH] Updated comment... :-/ --- lib/setup.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/setup.php b/lib/setup.php index 2e070ba439..9df6bb1f33 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -111,7 +111,7 @@ global $HTTPSPAGEREQUIRED; /// Connect to the database using adodb /// Some defines required BEFORE including AdoDB library - define ('ADODB_ASSOC_CASE', 0); //Use lowercase fieldnames for ADODB_FETCH_BOTH + define ('ADODB_ASSOC_CASE', 0); //Use lowercase fieldnames for ADODB_FETCH_ASSOC //(only meaningful for oci8po, it's the default //for other DB drivers so this won't affect them) @@ -153,10 +153,7 @@ global $HTTPSPAGEREQUIRED; die; } -/// Force fetchmode of records for Execute() and SelectLimit() to BOTH -/// (it isn't default in all the DB drivers. With the time we should -/// try to migrate to FETCH_ASSOC, possible with some tricks in the -/// recordset_to_array() function to maintain the id field properly. +/// Forcing ASSOC mode for ADOdb (some DBs default to FETCH_BOTH) $db->SetFetchMode(ADODB_FETCH_ASSOC); /// Starting here we have a correct DB conection but me must avoid -- 2.39.5