Bug #2311: Cannot get Character Field out of PostgreSQL 6.5.0
| From: | wst at topmail dot de | Date: | Wed, 15 Sep 1999 21:21:33 +0000 |
| Subject: | Bug #2311: Cannot get Character Field out of PostgreSQL 6.5.0 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10979@lists.php.net to get a copy of this message | ||
From: wst@topmail.de
Operating system: SuSE Linux 6.0 (Kernel 2.0.36)
PHP version: 3.0.12
PHP Bug Type: PostgreSQL related
Bug description: Cannot get Character Field out of PostgreSQL 6.5.0
The following code results in "Nothing"-Output:
$mystring = (string)pg_result($kat_result, $kat_i, "kat_name");
echo "$my_string";
Gives the same result with or without string-casting.
The same query in psql works very well. "kat_name" is a CHARACTER(40) field. I can
retrieve and display an integer field out of the same table and row without any problems.
My configuration:
486/100 - 32 MB Memory
SuSE Linux 6.0 - Kernel 2.0.36
Apache 1.3.6
PostgreSQL 6.5.0 (compiled by gcc 2.7.2.3)
PHP 3.0.12 running as CGI.
Please help.
Thanks in adv.