Re: [gnome-db] unsigned long value from GdaValue



On Wed, 2004-03-31 at 09:22 +0200, Vivien wrote:
> > Hello
> >
> > I have a MySQL database and a table as this:
> >
> > CREATE table host (
> > 	ip INTEGER UNSIGNED,
> > 	name VARCHAR(12)
> > );
> >
> > The IP column contain a unsigned long value from the function ntohl().
> >
> > But when I do a SELECT the provider cast this value to integer.
> 
> This seems to be a problem with the MySQL provider which should map
> the value to a GDA_VALUE_TYPE_UINTEGER value. I think that the
> fill_gda_value() function in providers/mysql/gda-mysql-recordset.c needs a
> bit more work...
> 
this is now fixed in CVS HEAD (or 1.1.4 which I'll release shortly).

cheers




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