Subject Is this a bug of Firebird?
Author Walter R. Ojeda Valiente
CREATE PROCEDURE TEST
RETURNS(
  lcName VARCHAR(40))
AS
BEGIN
   FOR SELECT
      ALU_NOMBRE,
      ALU_APELLD
   FROM
      ALUMNOS
   INTO
      :lcName,
      :lcName
   DO
      SUSPEND;
   
END;

In the above stored procedure there are 2 columns in the FOR SELECT but just 1 variable name.

It seems a bug for me. Or there are some reasons for allowing to do such thing?

Of course, the fault is of the programmer, but it can be detected at compilation time.

Firebird version: 2.5.5

Greetings.

Walter.