Skip to content

Commit

Permalink
cosmetic fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@145044 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Lukas Smith committed Nov 28, 2003
1 parent b298e50 commit ba3b84b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MDB/Modules/Datatype/Common.php
Expand Up @@ -165,7 +165,7 @@ function _baseConvertResult($value, $type)
case MDB_TYPE_INTEGER:
return intval($value);
case MDB_TYPE_BOOLEAN:
return ($value == 'Y') ? true : false;
return $value == 'Y';
case MDB_TYPE_DECIMAL:
return $value;
case MDB_TYPE_FLOAT:
Expand Down
2 changes: 1 addition & 1 deletion MDB/Modules/Datatype/mssql.php
Expand Up @@ -84,7 +84,7 @@ function convertResult($value, $type)
$db =& $GLOBALS['_MDB_databases'][$this->db_index];
switch($type) {
case MDB_TYPE_BOOLEAN:
return ($value == '1') ? true : false;
return $value == '1';
case MDB_TYPE_DATE:
if (strlen($value) > 10) {
$value = substr($value,0,10);
Expand Down
2 changes: 1 addition & 1 deletion MDB/Modules/Datatype/pgsql.php
Expand Up @@ -83,7 +83,7 @@ function convertResult($value, $type)
$db =& $GLOBALS['_MDB_databases'][$this->db_index];
switch ($type) {
case MDB_TYPE_BOOLEAN:
return $value == 't' ? true : false;
return $value == 't';
case MDB_TYPE_FLOAT:
return doubleval($value);
case MDB_TYPE_DATE:
Expand Down

0 comments on commit ba3b84b

Please sign in to comment.