Re: Oracle8 and varchar
| From: | Rouvas Stathis | Date: | Wed, 28 Jun 2000 10:08:18 +0000 |
| Subject: | Re: Oracle8 and varchar | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-680@lists.php.net to get a copy of this message | ||
What exaclty ar you doing? Some code would be useful. I haven't
encoutered any problems so far.
I've used NT/Ora8i, Solaris/Ora.8.0.xx and SuSE/Ora.8.0.xx so far with
no problems.
-Stathis.
Olivier Lepretre wrote:
>
> When I fetch a column of type varchar2 with php3, php is returning only the halfsize of the
> column, one caracter on two is a \0. The result is always truncated to the size of the column, but
> including the \0s.
>
> Exemple : column toto is varchar2(10) containing ABCDEFGHIJ
>
> Php is returning : A\0B\0C\0D\0E\0 wich is print ABCDE ... It misses the five last letters
> because Php had already count 10 chars ....
>
> Could anyone help me, I don't want to double the size of all my varchars fields !!!
>
> Thanks a lot
>
> __________________
> Olivier Lepretre
> Afrilink Belgium S.A.
> IT Manager
--
+-----------------------------+
|Rouvas Stathis |
|University of Athens |
|Department of Informatics |
|http://www.di.uoa.gr/~rouvas |
|rouvas@di.uoa.gr |
+-----------------------------+