Re: cvs: pear /MDB2/MDB2/Driver/Manager ibase.php

From: Date: Wed, 12 Oct 2005 17:18:39 +0000
Subject: Re: cvs: pear /MDB2/MDB2/Driver/Manager ibase.php
References: 1 2 3  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35466@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
Lukas Kahwe Smith wrote:
Oh, I did not expect ibase to need this code. But yeah now I remember why we do need it. Guess I need to readd it to the oci8 and pgsql driver as well. Sorry about that!
np
         if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
             && $db->options['field_case'] == CASE_LOWER
         ) {
-            $result = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $result);
+            $sequences = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $sequences);
         }
-        return $result;
+        return $sequences;
I wanted to use $result here, to make the code more similar all around.
I see. In this case I'd like to keep a more informative name, though, if you don't mind. Clear names help me quite a lot ;)
I changed it in all cases in all the drivers to $result. In a way in all list*() methods $result represents the final array to be returned. So its sort of consistent and clear? :-) regards, Lukas

« previous php.pear.cvs (#35466) next »