Subject | Re: Stored procedures: Order of named parameters important - why? |
---|---|
Author | Stefan Renzewitz |
Post date | 2005-08-30T11:27:45Z |
Thanks to all replies!
matching it would make working with sp just less error-prone. Imagine
you change a sp you have to find all code places where you set the
parameters even if you only changed the order in the sp. In general I
just dislike the idea of this loose programming-wise connection while
it is strictly requested for running the sp. Maybe I got too much used
to strongly-typed stuff as a .Net developer ;)
really saw this gem shining!
Stefan
> >Anyway, I think this is an easy way to go wrong and I wonder if athis
> >future Firebird version is going to change this?
>
> No, it won't change You are certainly not the first person to have
> initial misunderstanding about arguments and replaceablearguments,
> parameters. However, once you get used to the way your particular
> interface surfaces the handling of replaceable parameters and SP
> I'm sure any problems you perceive will disappear.Yes, but I think if it is possible to automate this process of
matching it would make working with sp just less error-prone. Imagine
you change a sp you have to find all code places where you set the
parameters even if you only changed the order in the sp. In general I
just dislike the idea of this loose programming-wise connection while
it is strictly requested for running the sp. Maybe I got too much used
to strongly-typed stuff as a .Net developer ;)
> >Beside that I'm deeply impressed by Firebird. I have spent quitesome
> >time with it now and I can't believe how professional this databaseis
> >in all meanings and yet for free.A
>
> Particularly powerful when you make use of parameterized statements.
> number of brain-dead bench tests running Firebird against thewham-bam
> querying support of certain well-known "competitors" (an in-joke)throw
> thousands of static SQL statements at the databases, usuallythe
> one-per-transaction, and claim firebird is "slow". The power of
> parameterized statement (prepare once, execute often) has nottouched their
> lives yet. :-)Very true! Than I used stored procedures / prepared statements I
>
really saw this gem shining!
Stefan