For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > #37124 [Opn]: PostgreSQL Query Returns Resource id for Field Value









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #37124 [Opn]: PostgreSQL Query Returns Resource id for Field Value
tony2001@php.net

2006-04-19, 6:58 pm

ID: 37124
Updated by: tony2001@php.net
Reported By: ahaig at penguinmilitia dot net
Status: Open
-Bug Type: PDO related
+Bug Type: Documentation problem
Operating System: Mac OS X 10.4.6
PHP Version: 5.1.2
Assigned To: wez
New Comment:

PDO_PGSQL returns bytea fields as streams by design.
Reclassified as docu problem.


Previous Comments:
------------------------------------------------------------------------

[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).

------------------------------------------------------------------------

[2006-04-19 09:58:31] tony2001@php.net

Assigned to the maintainer.

------------------------------------------------------------------------

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com