Subject Bug in FB1.5 RC8
Author Sachli
Hi,

I just found out a bug in RC8 that was not introduced in RC7.

Here's the sample code:

create PROCEDURE "test"
RETURNS
(
res INTEGER
)
AS
DECLARE VARIABLE a integer;
BEGIN
a = 0;
if (a=1) then res = 1;
else if (a=2) then res = 2;
else if (a=3) then res = 3;
else if (a=4) then res = 4;
else if (a=5) then res = 5;
else if (a=6) then res = 6;
else if (a=7) then res = 7;
else if (a=8) then res = 8;
else if (a=9) then res = 9;
else if (a=10) then res = 10;
else if (a=11) then res = 11;
else if (a=12) then res = 12;
else if (a=13) then res = 13;
else if (a=14) then res = 14;
else if (a=15) then res = 15;
else if (a=16) then res = 16;
else if (a=17) then res = 17;
else if (a=18) then res = 18;
else if (a=19) then res = 19;
else if (a=20) then res = 20;
else if (a=21) then res = 21;
else if (a=22) then res = 22;
else if (a=23) then res = 23;
else if (a=24) then res = 24;
else if (a=25) then res = 25;
else if (a=26) then res = 26;
else if (a=27) then res = 27;

SUSPEND;
END

When the code is executed, it will raise an error: 'Unexpected end of
command'.
But if I delete the line: 'else if (a=27) then res=27;', the code will
be executed well. It seems that it can only handle 26 if-then-else
syntax.

Regards,

Sachli