php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2311 Cannot get Character Field out of PostgreSQL 6.5.0
Submitted: 1999-09-15 17:21 UTC Modified: 1999-09-15 17:36 UTC
From: wst at topmail dot de Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.12 OS: SuSE Linux 6.0 (Kernel 2.0.36)
Private report: No CVE-ID: None
 [1999-09-15 17:21 UTC] wst at topmail dot de
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-15 17:36 UTC] eschmid at cvs dot php dot net
Closed (realy). 
That is not a PHP bug.  Echo a $mystring and not a $my_string. 

-Egon
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC