Re: [gnome-db] Prepared Statements



El Viernes, 25 de Abril de 2003 01:50, Rodrigo Moya escribió:
> > 	I was thinking about the API for prepared statements because when
> > you create a new GdaParameter you have to specify the GdaValueType and I
> > don'k understand why.
>
> because providers need to know what a parameter's type is, to be able to
> know what to do with the associated value.

> > gda_parameter_new(), so my idea is that gda_paramenter_new() could get
> > the real type calling gda_value_get_type().
>
> I think what you want is a gda_parameter_new_from_value, am I right? If
> so, we can add it if you want.
>
> Although, to create parameters, as with values, you should be using the
> _new_string, new_gobject and the (missing) _new_integer, etc...

	My idea is to remove the gda_parameter_new() and put the 
gda_parameter_new_from_value()	, because is it possible to create a 
GdaParameter without setting a GdaValue?

-- 
Xabier Rodríguez Calvar
Igalia S.L.



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