Subject | Re: [Firebird-Architect] Exec. statement parameters |
---|---|
Author | Dmitry Yemanov |
Post date | 2007-12-10T13:55:06Z |
Adriano,
It's the thing we've been asked for since FB1, I suppose. Yes, it means
an API change/extension, but it does sound as a valuable feature to me.
And, if we're going to support both question mark based unnamed and
colon based named parameters in the future, what's wrong to have them in
PSQL earlier?
Dmitry
> ----------Are you also against the idea to implement named parameters in DSQL?
> S = 'INSERT INTO TTT VALUES (:a, :b, :a)';
> EXECUTE STATEMENT (:S) (CURRENT_TRANSACTION, CURRENT_CONNECTION)
> ----------
>
> Three parameters, two names, and two values...
>
> I'm against this syntax.
It's the thing we've been asked for since FB1, I suppose. Yes, it means
an API change/extension, but it does sound as a valuable feature to me.
And, if we're going to support both question mark based unnamed and
colon based named parameters in the future, what's wrong to have them in
PSQL earlier?
Dmitry