Subject | Fixed-length strings in UDFs (Re: Slight UDF Mystery . . .) |
---|---|
Author | lutterot |
Post date | 2006-07-19T23:58:41Z |
--- In firebird-support@yahoogroups.com, "vogonjeltzprostetnic"
<benedict@...> wrote:
CHAR(16), Firebird (Version 2.0.0.12710) treats it as a
null-terminated CSTRING so that the information after a zero byte is lost.
defect apparently makes it impossible to return binary data from UDFs
that is longer than the non-character types and not a blob. Or am i wrong?
Thank you,
Christof
<benedict@...> wrote:
> you've no doubt gleaned from my original post, I want the UDF toI have been trying to do that, too. Even if I set the return value to
> return the binary of a GUID, hence the RETURNS CHAR(16) CHARACTER SET
> OCTETS. I'm really not sure about using CSTRING. The last thing I
> want Firebird to do is treat the return value as a null-terminated
> string in the default character set for the database in question.
CHAR(16), Firebird (Version 2.0.0.12710) treats it as a
null-terminated CSTRING so that the information after a zero byte is lost.
> Do you have any word on whether Firebird does (or might do) this? DoI would really like to know if there is any solution to this. This
> you have any further information on the bug you mention?
defect apparently makes it impossible to return binary data from UDFs
that is longer than the non-character types and not a blob. Or am i wrong?
Thank you,
Christof