| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2008-07-14 14:14 UTC] uw@php.net
  [2008-07-23 13:58 UTC] uw@php.net
  [2010-05-15 17:59 UTC] i dot kay at me dot com
  [2010-05-15 18:06 UTC] i dot kay at me dot com
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
Description: ------------ Quoting a reporting I received via email: I'm trying to use PDO abstraction layer (version 1.0RC1), but I'm having serious problems with LOB support in Oracle and Postgres (the only I've tried). Reproduce code: --------------- <?php /* Connect to an ODBC database using driver invocation */ $dsn = 'pgsql:host=192.168.0.4 port=5432 dbname=isodb_fresz'; $path = "test.jpg"; $dbh = new PDO($dsn, "isodb_user", "isodb_user"); $sql=" insert into iso_dane_binarne (db_dane_binarne_id, db_dane) values(1, ?);"; $content = fopen($path, "rb"); print_r($content); $stmt = $dbh->prepare($sql); print_r(PDO_PARAM_LOB); $stmt->bindParam( 1, $content, PDO_PARAM_LOB); $stmt->execute(); ?> Expected result: ---------------- The image content in the database Actual result: -------------- This inserts something like "Resource id 3#" string into db_dane (bytea type) column.