Re: [gnome-db] parameterized queries



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. 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?



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