php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36803 pdo_pgsql lobs problem
Submitted: 2006-03-20 20:13 UTC Modified: 2006-03-20 20:17 UTC
From: mauroi at digbang dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 5.1.2 OS: Win XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mauroi at digbang dot com
New email:
PHP Version: OS:

 

 [2006-03-20 20:13 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-20 20:17 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC