cvs: pear /MDB pgsql.php

From: Date: Thu, 18 Jul 2002 19:01:03 +0000
Subject: cvs: pear /MDB pgsql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5178@lists.php.net to get a copy of this message
lsmith Thu Jul 18 15:01:03 2002 EDT Modified files: /pear/MDB pgsql.php Log: fixes to convertResult() Index: pear/MDB/pgsql.php diff -u pear/MDB/pgsql.php:1.11 pear/MDB/pgsql.php:1.12 --- pear/MDB/pgsql.php:1.11 Thu Jul 18 14:48:55 2002 +++ pear/MDB/pgsql.php Thu Jul 18 15:01:02 2002 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ -// $Id: pgsql.php,v 1.11 2002/07/18 18:48:55 lsmith Exp $ +// $Id: pgsql.php,v 1.12 2002/07/18 19:01:02 lsmith Exp $ // MDB postgresql driver. @@ -1107,17 +1107,17 @@ function convertResult($value, $type) { switch ($type) { - case METABASE_TYPE_BOOLEAN: + case MDB_TYPE_BOOLEAN: return (strcmp($value, "Y") ? 0 : 1); - case METABASE_TYPE_DECIMAL: - return (sprintf("%." . $this->options['decimal_places'] . "f", doubleval($value) / $this->decimal_factor)); - case METABASE_TYPE_FLOAT: + case MDB_TYPE_DECIMAL: + return (sprintf("%.".$this->options['decimal_places']."f",doubleval($value)/$this->decimal_factor)); + case MDB_TYPE_FLOAT: return doubleval($value); - case METABASE_TYPE_DATE: + case MDB_TYPE_DATE: return ($value); - case METABASE_TYPE_TIME: + case MDB_TYPE_TIME: return ($value); - case METABASE_TYPE_TIMESTAMP: + case MDB_TYPE_TIMESTAMP: return substr($value, 0, strlen("YYYY-MM-DD HH:MM:SS")); default: return ($this->baseConvertResult($value, $type));

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