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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wst at topmail dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC