Oracle8 and varchar
| From: | Olivier Lepretre | Date: | Wed, 28 Jun 2000 08:42:41 +0000 |
| Subject: | Oracle8 and varchar | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-676@lists.php.net to get a copy of this message | ||
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