#22871 [Fbk->Opn]: bad return value for ibase_blob_close() and ibase_blob_import()

From: Date: Wed, 30 Apr 2003 10:51:51 +0000
Subject: #22871 [Fbk->Opn]: bad return value for ibase_blob_close() and ibase_blob_import()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352972@lists.php.net to get a copy of this message
ID: 22871 Updated by: sniper@php.net Reported By: p dot pastori at tiscali dot it -Status: Feedback +Status: Open Bug Type: Documentation problem Operating System: all PHP Version: 4.3.1 Previous Comments: ------------------------------------------------------------------------ [2003-04-25 23:53:59] philip@php.net Could you come up with some nice ibase examples? ------------------------------------------------------------------------ [2003-03-25 05:06:24] p dot pastori at tiscali dot it Functions ibase_blob_close() and ibase_blob_import() both returns a string (blob_id_str) on success instead of int (as stated by documentation). The returned string may contains NULLs, so to update a database record which contains blob field it is necessary to use the ibase_prepare() (with a ? placeholder for blob_id_string instead of '?' ) instead of ibase_query(). It would be nice to have an exaple of blob insertion which involves the following functions: - ibase_blob_import(), to get the temporary blob_id of just created blob - ibase_prepare() and ibase_execute() for the query that inserts or updates a database record which contains blob (this last step may be in transaction while the first not since it is already in a read-only transaction). Finally into the first example reported on ibase_execute() document page there is an error on the ibase_prepare() where the link_identifier argument is omitted. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22871&edit=1

« previous php.doc (#969352972) next »