public function readField($sql)
    {
        $result = $this->read($sql);
        $result->setFetchMode(PDO::FETCH_COLUMN, 0);
        $row = $result->fetch();
        //$this->convertDatesInRows($result, $row);
        unset($result);
        return $row;
    }
public function readField($sql)
    {
        $result = $this->read($sql);
        $result->setFetchMode(PDO::FETCH_COLUMN, 0);
        $row = $result->fetch();
        //$this->convertDatesInRows($result, $row);
        unset($result);
        return $row;
    }
public function readField ( $ sql ) { $ result = $ this -> read ( $ sql ) ; $ result -> setFetchMode ( PDO :: FETCH_COLUMN , 0 ) ; $ row = $ result -> fetch ( ) ; //$this->convertDatesInRows($result, $row); unset ( $ result ) ; return $ row ; }
Returns the first column of the first row of the result set

NOTE: It is expected that all DATETIME or TIMESTAMP or other native
date column types should automatically be converted to StorageDate.

@param string $sql SELECT statement

@return string|StorageDate
Returns the first column of the first row of the result set