Oracle's Varchar
| From: | Olivier Lepretre | Date: | Wed, 28 Jun 2000 08:37:25 +0000 |
| Subject: | Oracle's Varchar | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3517@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