Re: Postgres provider to use gda-srv lib
- From: "Peter C. Norton" <spacey lenin nu>
- To: Vivien Malerba <malerba linuxave net>
- Cc: Rodrigo Moya <rodrigo linuxave net>, gnome-db-list gnome org
- Subject: Re: Postgres provider to use gda-srv lib
- Date: Wed, 5 Jul 2000 11:49:37 -0700
I've started to re-write the db2 server to use the gda-mysql-server from
cvs, too.
I agree on point 1, for case 2 can you provide a scenario where an unknown
type can come back out of the database, and why a varchar2 would be the
right datatype? Are you thinking of a user-defined object? Dunno about 3
yet.
-Peter
On Wed, Jul 05, 2000 at 03:53:35PM +0200, Vivien Malerba wrote:
> Hi Rodrigo!
>
> I've started to modify the Postgres provider to use the gda-server lib. I used
> the mysql provider on the way to compare. I found some points where the two
> providers do not behave the same way, and points where we should define some
> more things. Here are my thoughts:
>
> 1) in the function gda_mysql_connection_free(), maybe you it should be added:
> gda_server_connection_set_user_data(cnc, NULL) so we don't have a wild pointer.
>
> 2) in the functions gda_*_connection_get_gda_type(): I propose that the
> returned value be GDA_TypeNull if there is an error (cnc NULL or user data
> NULL), and GDA_TypeVarchar if the type is unknown but there is no error.
>
> 3) the returned value from the function gda_mysql_connection_get_c_type() is
> not well defined. So I propose that we define them as I did with Postgres
> (Gda_POSTGRES_CType enumeration) once for everyone. I don't know exactly where
> to put this.
>
> At the moment I have something quite big which does not even compile!
> Tell me what you think of all this.
>
> Cheers,
>
> Vivien
>
> _______________________________________________
> gnome-db-list mailing list
> gnome-db-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-db-list
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]