Subject | RE: [firebird-support] BLOBs and Triggers |
---|---|
Author | Alan McDonald |
Post date | 2003-07-04T13:37:45Z |
> Alan, it's blob to blob. The table is the same. I getting from one rowWhat's the domain text? How is it defined? and binary?
> and inserting in another row (modifying pk, of course). And I forgot
> I'm using FB 1.5 RC3.
> Below the table and the insert statement:
>
> create table releases (
> releaseID objectID not null,
> fileID objectID not null,
> releaseOut boolean not null,
> releaseOutTime timestamp,
> releaseInTime timestamp,
> taskID objectID,
> developerID objectID,
> releaseNum smallint default 1 not null check (releaseNum
> > 0),
> releaseAge timestamp not null,
> releaseCrc integer,
> releaseDescription text not null,
> releaseSource binary not null,
> constraint releasesPK primary key (releaseID)
> );
>
> ...
> insert into releases
> select
> :newReleaseID, :newFileID, 0, null, current_timestamp, null, null, 1,
> releaseAge, releaseCrc, releaseDescription, releaseSource
> from
> releases
> where
> releaseID = :releaseID;
>
Why are you using parameters in the select? Is this how you are running the
query in an admin tool or in your application?
Alan