You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firebird allows variable declarations only at the very beginning of an EXECUTE BLOCK AS statement, and that statement cannot be nested, see: https://stackoverflow.com/q/60654899/521799
We could probably re-write the entirety of the anonymous block, declaring all variables up front, and aliasing variables in case of ambiguities (which would also solve T-SQL's lack of block scope: #8314)
Some variable declarations are emitted by emulations, such as the indexed for loop, which currently doesn't work in Firebird because of the necessity of declaring a loop variable.
The text was updated successfully, but these errors were encountered:
In Firebird, we currently cannot use this kind of pattern:
Firebird allows variable declarations only at the very beginning of an
EXECUTE BLOCK AS
statement, and that statement cannot be nested, see: https://stackoverflow.com/q/60654899/521799We could probably re-write the entirety of the anonymous block, declaring all variables up front, and aliasing variables in case of ambiguities (which would also solve T-SQL's lack of block scope: #8314)
Some variable declarations are emitted by emulations, such as the indexed for loop, which currently doesn't work in Firebird because of the necessity of declaring a loop variable.
The text was updated successfully, but these errors were encountered: