Re: [gnome-db] parameterized queries



On Tue, 2004-11-09 at 19:24 -0700, Neil Zanella wrote:
> On Tue, 09 Nov 2004 02:09:23 +0100, Rodrigo Moya <rodrigo gnome-db org> wrote:
> > On Mon, 2004-11-08 at 12:37 -0700, Neil Zanella wrote:
> > 
> > 
> > > Hello,
> > >
> > > I need to build 'printf style' or similar parameterized queries. My
> > > understanding is that
> > > I can do this with:
> > >
> > > gint        gda_connection_execute_non_query
> > >                                             (GdaConnection *cnc,
> > >                                              GdaCommand *cmd,
> > >                                              GdaParameterList *params);
> > >
> > > using the GdaParameterList (instead of setting it to null, maybe I can
> > > place a list
> > > of intst, gchar *, etc... or whatever).
> > >
> > > Can someone please be so kind to give me an example? (is this really what those
> > > parameters are for or am I imagining?).
> > > 
> > you just need to create the GdaParameterList, but, the problem is the
> > providers don't deal with the params argument :( So, it's kind of
> > useless.
> 
> Why can't libgda deal with it when the providers don't.
>
because you would be sending the parameter list to providers that don't
use that list at all.

>  Either all the providers
> deal with it or nobody is going to use it. If it doesn't work, why not
> take it out
> of the API altogether? Why leave it up to the providers?
>
because we ran out of time to complete all the work in the providers.
All that API will be finished for 1.4, that's why we don't remove it.
-- 
Rodrigo Moya <rodrigo gnome-db org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]