Subject | Re: Slight UDF Mystery . . . |
---|---|
Author | i5cvalde |
Post date | 2004-12-07T07:18:13Z |
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
when dealing with UDF's.
Which FB version did you test?
observed, it could be said if it was fixed. I'm not a ghostbuster, so
I prefer to chase down concrete bugs.
C.
<Ivan.Prenosil@s...> wrote:
> > From: "i5cvalde" <cvalde@u...>:CString.
> > <Ivan.Prenosil@s...> wrote:
> > > After quick test, it *seems* that returning CHARs (including binary
> > > zero) works in FB1.5.2. But I'm puzzled, because there is no mention
> > > about fixing this bug in Release Notes, and returning VARCHARs
> > > still does not work (did somebody fixed just half of the bug ?).
> >
> > Ivan:
> > You are a long-time, respected, very experienced IB/FB developer.
> > Could you be less newbie-behaved and describe which bug you are
> > referring to, please? Or do I have to guess?
>
> Sorry, if I spend more time writing my email in friday, I would miss
> the last bus and had to sleep in office.
>
> The bug was discussed several times in both support and devel lists,
> and the problem was that regardless of declaration of the return value
> (Cstring/Char/Varchar), Firebird always interpreted return value as
> (So e.g. for varchar with length<256 the first byte was binary zero,Then I'm new to IB/FB because I never have suffered or seen the bug
> thus the result was empty string.)
when dealing with UDF's.
> The result I obtained in Friday was that CHARs work as expectedafter binary zero),
> (i.e. correct number of characters were returned, including those
> and that VARCHARs do not work because they behave like CHARscorrectly returned,
> (i.e. unlike previous versions even data after binary zero were
> however the result started with two bytes indicating string length,i.e. those two
> bytes incorrectly become part of data).correct!
> Today I repeated the test with identical database, identical UDF,
> and identical sql commands (just copy/pasted), and the result was -
> I have no idea whether there were high solar activity in Friday or what,I hope you aten't living in a parallel universe.
> but the bug seems fixed now - thanks developers!
Which FB version did you test?
> I have not find anything about fixing this bug in release notes noron devel list.
> Could this important fix be included in Release notes, please!? Thanks.If you post an example with an imaginary UDF declaration and what you
observed, it could be said if it was fixed. I'm not a ghostbuster, so
I prefer to chase down concrete bugs.
C.