#36804 [Fbk->Opn]: pdo_pgsql lobs problem
| From: | mauroi at digbang dot com | Date: | Mon, 03 Apr 2006 16:40:01 +0000 |
| Subject: | #36804 [Fbk->Opn]: pdo_pgsql lobs problem | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969372585@lists.php.net to get a copy of this message | ||
ID: 36804
User updated by: mauroi at digbang dot com
Reported By: mauroi at digbang dot com
-Status: Feedback
+Status: Open
Bug Type: Documentation problem
Operating System: Win XP SP2
PHP Version: 5.1.2
New Comment:
Well, the page for the new method of pdo_pgsql
(http://www.php.net/manual/en/function.pdo-pgsqllobcreate.php) could
be. Just a note saying that "because the pdo driver only supports lobs
using bytea fields, this function has been created". Or something like
that (in a better english :) ).
I've also added some comments in that function that might be good to
include in the documentation. But that's another story.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2006-04-03 18:04:23] vrana@php.net
> My first problem is that the documentation doesn't say if the table
field should be a bytea or an oid
On which page should be mentioned this?
------------------------------------------------------------------------
[2006-03-20 20:28:55] mauroi at digbang dot com
Well, at least it should be a documentation problem.
Maybe the appropiate note for the type of field that pdo_pgsql requires
could be added.
As a matter of fact, I didn't know if this is a PHP bug or not, because
the documentation doesn't say anything.
------------------------------------------------------------------------
[2006-03-20 20:18:01] mauroi at digbang dot com
Duplicated. Sorry
------------------------------------------------------------------------
[2006-03-20 20:17:28] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2006-03-20 20:13:41] mauroi at digbang dot com
Description:
------------
I'm trying to insert a lob into a pgsql field.
My first problem is that the documentation doesn't say if the table
field should be a bytea or an oid (more suitable for a large object). I
supposed both worked.
I've tried with a bytea and it worked as expected. But the same
operation with an OID field doesn't work.
(Also, i've noticed three undocumented public methods in pdo_pgsql
(pgsqlLOBUnlink, pgsqlLOBOpen, pgsqlLOBCreate))
Shouldn't it work with both methods???
At least, the quote function escapes always the lob as if it was a
bytea. But in the rest of the driver it considers the possibility of an
oid.
Thanks in advance.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36804&edit=1