Subject Re: [Firebird-Architect] Exec. statement parameters
Author Alex Peshkov
On Wednesday 12 December 2007 12:41, Adriano dos Santos Fernandes wrote:
> Alex Peshkov escreveu:
> > On Monday 10 December 2007 18:09, Vlad Khorsun wrote:
> >> ....
> >>
> >>> Named parameters is good feature, but what about the syntax in the
> >>> sample, O also do not like it. If we use named parameters, it should be
> >>> something like:
> >>>
> >>> S = 'INSERT INTO TTT VALUES (:a, :b, :a)';
> >>> EXECUTE STATEMENT S (a=CURRENT_TRANSACTION, b=CURRENT_CONNECTION);
> >>
> >> Hmm... now i see where confusion is. I'll look how to implement such
> >> syntax
> >
> > Vlad, I do not pretend that syntax to be the ideal, just gave an example
> > looking better for me compared with initial one. MAy be should be
> > discussed a bit. Or at least wait 2 or 3 days before starting to rewrite
> > the code:)
>
> Don't introduce ambiguities with boolean expressions, please. :-)

EXECUTE STATEMENT S (a(CURRENT_TRANSACTION), b(CURRENT_CONNECTION));

Does this look better for you?