Article View: borland.public.interbase.sql
Article #247Assignment compatibility between Blob and Varchar
From: Stefan
Date: Thu, 19 Jun 2008 14:21
Date: Thu, 19 Jun 2008 14:21
47 lines
2071 bytes
2071 bytes
In some posting to the Interbase NGs I have read that it should be
possible to make assignments in Interbase 2007 from Blob fields to
Varchar fields (at least that is was what I understood).
I couldn't find any further information on this in the Interbase
documentation set and so I tried with a simple procedure:
SET TERM ^ ;
CREATE PROCEDURE PRUEBAS
RETURNS (
S_MEMO BLOB SUB_TYPE 1 SEGMENT SIZE 80,
S_VARCHAR VARCHAR(1024))
AS
BEGIN
S_VARCHAR = 'TEST';
S_MEMO = S_VARCHAR;
SUSPEND;
S_MEMO = '2ND TEST';
S_VARCHAR = S_MEMO;
SUSPEND;
END^
SET TERM ; ^
When executing this procedure I get an internal error in the
line
S_VARCHAR = S_MEMO;
Without that line it seems to work.
Can anyone explain to me what assignments are possible in Interbase 2007
between Blob and Varchar? Or point me to some source of information?
For example, would it be possible to do something like this:
SELECT BLOB_FIELD, VARCHAR_FIELD FROM MYTABLE
INTO M_VARCHAR_VARIABLE, M_BLOB_VARIABLE;
Thanks for any help.
--
Stefan Sinne
Email: _DT_ = .
_AT_ = @
Technical Details
Message-ID:
<485a6b82@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,4e7937164e43b4ed,start X-Google-Attributes: gid114a0e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 19 Jun 2008 16:21:55 +0200 From: Stefan <stefan_DT_sinne_AT_gmx_DT_de> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql Subject: Assignment compatibility between Blob and Varchar Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.61.247.245 Message-ID: <485a6b82@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213885314 83.61.247.245 (19 Jun 2008 07:21:54 -0700) Lines: 47 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1864