Re: DB/DB_oci8 question
| From: | Tomas V.V.Cox | Date: | Wed, 28 Nov 2001 00:42:00 +0000 |
| Subject: | Re: DB/DB_oci8 question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-543@lists.php.net to get a copy of this message | ||
Karsten Kraus wrote:
>
> Hi list,
>
> I'm not sure if I am right here with this one:
>
> I'm using the PEAR-DB-Class (DB_oci8-backend)
> to connect (now wonder - an Oracle 8i DB).
> It works quite fine, but now I have one little prob...
> all the values I get from the DB_Result->fetchRow(DB_FETCHMODE_ASSOC)
> are strings! Is that an error in my code or is it a general problem?
> I just want my integers and floats/doubles back ;-(
>
That's a common problem in all the backends (not sure if all). There is
a small note about that:
" Keep in mind that database functions in PHP usually return string
values for results regardless of the database's internal type."
It would help a lot in many circumstances that the data type returned
might be converted into a php data type. Please go to php-dev and
propose that :-)
Tomas V.V.Cox