Subject | Re: [firebird-support] Insert BLOB to table problem |
---|---|
Author | Aage Johansen |
Post date | 2004-03-31T18:26:35Z |
On Wed, 31 Mar 2004 12:46:02 +0000 (UTC), bensonwyl wrote:
definitely fail if you expect it to accept a field _name_ as a paramter.
--
Aage J.
> (A)I don't think this:
> insert into ml_remark2
> (remarkid,description,contentwidth,remarkcontent)
> select
> :newremarkid,description,contentwidth,f_strBlob(f_blobAsPchar
> (remarkcontent)
> )
> from ml_remark2
> where remarkid=:iremarkid;
> => for IB6 and FB1.5: Arithmetic overflow or division by zero has
> occured,...
>
> (B)
> insert into ml_remark2
> (remarkid,description,contentwidth,remarkcontent)
> select :newremarkid,description,contentwidth,remarkcontent
> from ml_remark2
> where remarkid=:iremarkid;
> => for FB1.5, IB6: no error
> => BUT IB6: Error "BLOB not found" will occur after some unknown period
>
> Question:
> 1. in IB6, how to solve this problem?
> 2. in Fb1.5, is it ok for using method (A)?
> select :newremarkid, ...is a good idea. Will it work if this parameter is a constant? It will
definitely fail if you expect it to accept a field _name_ as a paramter.
--
Aage J.