Re: [gnome-db] get_mysql_types - doesnt appear to match manual.



On Tue, 2004-08-31 at 01:01 +0800, Alan Knowles wrote:
> I'm using GDA_CONNECTION_SCHEMA_TYPES  to work out the GdaValue type 
> from a schema to build requests, however I just discovered that type 
> 'int' is not listed (hence my lookup fails), causing the usual implosion :)
> 
> Comparing the code in get_mysql_types to the mysql manual, there are 
> quite a few differences, is this intentional?,
>
IIRC, I added those types by looking at the available types in
mysql_com.h, specifically the enum enum_field_types type.

What is wrong probably is that we should use int instead of int24

>  was SCHEMA_TYPES designed 
> for this use? did you want a patch to fix it?
> 
yes, please :) But take into account the above mentioned enumeration
type. I guess we should be using that as the set of supported types,
right?
-- 
Rodrigo Moya <rodrigo gnome-db org>




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