Subject | Re: [firebird-support] Is this a bug of Firebird? |
---|---|
Author | Walter R. Ojeda Valiente |
Post date | 2017-02-08T23:36:45Z |
The error is of the programmer, I agree with you, but to repeat the name of a variable without the Firebird showing any message of error is, at least for me, a bug.
To have 2 or more variables with the same name after the INTO clause is useless. The compiler can be smart enough to detect such thing.
Or not?
Greetings.
Walter.
On Wed, Feb 8, 2017 at 2:36 PM, 'Leyne, Sean' Sean@... [firebird-support] <firebird-support@yahoogroups.com> wrote:
> Yes, but I can not know the value of the column X.ALU_NOMBRE
>
> And the idea, of course, is know that value, that's why it appears in the FOR
> SELECT. If not, I can do nothing with X.ALU_NOMBRE
You are asking for the system to evaluate the *intent* of logic.
That is completely outside the purview of any application environment that I know.
The only thing that a system can check/enforce is the correctness of the code, not to check whether the developer has 2 brain cells.
Sean