Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread AV in recursive function
Thu, May 6 2010 6:09 AMPermanent Link

Surjanto Kwe

PT. Usahajaya Ficooprasional

Hi, I am evaluating EDB and trying to do recursive function, but I always
got AV in doing it.

CREATE FUNCTION "Rekursi" (IN "Test" INTEGER)
RETURNS INTEGER
BEGIN
    DECLARE Result, i INTEGER DEFAULT 0;
    if test < 5 then

       SET i = test + 1;
       SET Result = Result + Rekursi(i);
    end if;
    RETURN Result;
END

Regards,


Surjanto
Fri, May 7 2010 1:40 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Surjanto,

<< Hi, I am evaluating EDB and trying to do recursive function, but I always
got AV in doing it. >>

Hmmm, I'm seeing a different bug with 2.03 Build 13 - it doesn't allow me to
define the function because it thinks that the Rekursi function doesn't
exist (which it doesn't, but it should allow this).

--
Tim Young
Elevate Software
www.elevatesoft.com
Fri, May 7 2010 10:16 PMPermanent Link

Surjanto Kwe

PT. Usahajaya Ficooprasional

Sorry Tim,

Forgot to mention, I trick the SQL by not mentioning the function Rekursi at
creation, then alter and add it


Regards,


Surjanto
Mon, May 10 2010 1:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Surjanto,

<< Forgot to mention, I trick the SQL by not mentioning the function Rekursi
at creation, then alter and add it >>

Ahh, very clever. Smiley  I've reproduced the AV here, and I will have a fix
for it in the next build, which should be available by around Friday of this
week or Monday of next week.

--
Tim Young
Elevate Software
www.elevatesoft.com
Image