cvs: pear /MDB2/MDB2/Driver/Manager ibase.php
| From: | Lorenzo Alberton | Date: | Wed, 12 Oct 2005 15:43:14 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Manager ibase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35449@lists.php.net to get a copy of this message | ||
quipo Wed Oct 12 11:43:14 2005 EDT
Modified files:
/pear/MDB2/MDB2/Driver/Manager ibase.php
Log:
removed redundant checks
http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/ibase.php?r1=1.44&r2=1.45&ty=u
Index: pear/MDB2/MDB2/Driver/Manager/ibase.php
diff -u pear/MDB2/MDB2/Driver/Manager/ibase.php:1.44 pear/MDB2/MDB2/Driver/Manager/ibase.php:1.45
--- pear/MDB2/MDB2/Driver/Manager/ibase.php:1.44 Wed Oct 12 10:53:08 2005
+++ pear/MDB2/MDB2/Driver/Manager/ibase.php Wed Oct 12 11:43:12 2005
@@ -42,7 +42,7 @@
// | Author: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.44 2005/10/12 14:53:08 quipo Exp $
+// $Id: ibase.php,v 1.45 2005/10/12 15:43:12 quipo Exp $
require_once 'MDB2/Driver/Manager/Common.php';
@@ -458,9 +458,7 @@
if (PEAR::isError($result)) {
return $result;
}
- if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
- && $db->options['field_case'] == CASE_LOWER
- ) {
+ if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) {
$result = array_map(($db->options['field_case'] == CASE_LOWER ?
'strtolower' : 'strtoupper'), $result);
}
return $result;
@@ -488,9 +486,7 @@
if (PEAR::isError($result)) {
return $result;
}
- if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
- && $db->options['field_case'] == CASE_LOWER
- ) {
+ if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) {
$result = array_map(($db->options['field_case'] == CASE_LOWER ?
'strtolower' : 'strtoupper'), $result);
}
return $result;
@@ -534,9 +530,7 @@
if (PEAR::isError($result)) {
return $result;
}
- if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
- && $db->options['field_case'] == CASE_LOWER
- ) {
+ if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) {
$result = array_map(($db->options['field_case'] == CASE_LOWER ?
'strtolower' : 'strtoupper'), $result);
}
return $result;
@@ -630,9 +624,7 @@
if (PEAR::isError($result)) {
return $result;
}
- if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
- && $db->options['field_case'] == CASE_LOWER
- ) {
+ if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) {
$result = array_map(($db->options['field_case'] == CASE_LOWER ?
'strtolower' : 'strtoupper'), $result);
}
return $result;
@@ -717,9 +709,7 @@
if ($sqn = $this->_isSequenceName($table_names[$i]))
$sequences[] = $sqn;
}
- if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE
- && $db->options['field_case'] == CASE_LOWER
- ) {
+ if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) {
$sequences = array_map(($db->options['field_case'] == CASE_LOWER ?
'strtolower' : 'strtoupper'), $sequences);
}
return $sequences;