#37124 [Opn->Csd]: PostgreSQL Query Returns Resource id for Field Value

From: Date: Mon, 20 Aug 2007 10:29:28 +0000
Subject: #37124 [Opn->Csd]: PostgreSQL Query Returns Resource id for Field Value
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377749@lists.php.net to get a copy of this message
ID: 37124 Updated by: vrana@php.net Reported By: ahaig at penguinmilitia dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Mac OS X 10.4.6 PHP Version: 5.1.2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "The bytea fields are returned as streams." Previous Comments: ------------------------------------------------------------------------ [2006-04-19 21:45:38] tony2001@php.net PDO_PGSQL returns bytea fields as streams by design. Reclassified as docu problem. ------------------------------------------------------------------------ [2006-04-19 17:02:45] ahaig at penguinmilitia dot net Trying to paste the information here about what I got trying to use a stream but for some reason it truncates it... Ended up with the same truncated post twice. ------------------------------------------------------------------------ [2006-04-19 17:01:48] ahaig at penguinmilitia dot net Just tried that. stream_get_line( $row['args'], 100 ) outputs: tables_mainclassname_fkey ------------------------------------------------------------------------ [2006-04-19 17:00:33] ahaig at penguinmilitia dot net Just tried that. stream_get_line( $row['args'], 100 ) outputs: tables_mainclassname_fkey ------------------------------------------------------------------------ [2006-04-19 14:44:52] wez@php.net Sounds like a LOB type... tried using the streams functions to read it? (the resource is a stream). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37124 -- Edit this bug report at http://bugs.php.net/?id=37124&edit=1

« previous php.doc (#969377749) next »