Re: [gnome-db] Big patch
- From: Gonzalo Paniagua Javier <gonzalo gnome-db org>
- To: Gnome-db list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Big patch
- Date: Mon, 13 May 2002 17:02:55 +0200
* [ Rodrigo Moya <rodrigo gnome-db org>
* Mon, 13 May 2002 14:26:53 +0200 ]
> > Index: libgda/gda-table.c
> > ===================================================================
> > RCS file: /cvs/gnome/libgda/libgda/gda-table.c,v
> > retrieving revision 1.6
> > diff -u -r1.6 gda-table.c
> > --- libgda/gda-table.c 22 Apr 2002 22:01:33 -0000 1.6
> > +++ libgda/gda-table.c 12 May 2002 08:52:17 -0000
> > @@ -199,6 +199,7 @@
> >
> > fa = gda_data_model_describe_column (GDA_DATA_MODEL (model), n);
> > gda_table_add_field (table, (const GdaFieldAttributes *) fa);
> > + gda_field_attributes_free (fa);
> > }
> >
> why do you remove this line?
Because gda_table_add_field () creates a new copy of the field
attributes that is the one stored in the hash.
>
> > Index: libgda/libgda.h
> > ===================================================================
> > RCS file: /cvs/gnome/libgda/libgda/libgda.h,v
> > retrieving revision 1.13
> > diff -u -r1.13 libgda.h
> > --- libgda/libgda.h 4 May 2002 16:39:36 -0000 1.13
> > +++ libgda/libgda.h 12 May 2002 08:52:17 -0000
> > @@ -38,7 +38,6 @@
> > #include <libgda/gda-log.h>
> > #include <libgda/gda-parameter.h>
> > #include <libgda/gda-quark-list.h>
> > -#include <libgda/gda-recordset.h>
> > #include <libgda/gda-row.h>
> > #include <libgda/gda-table.h>
> > #include <libgda/gda-util.h>
> >
> here, include gda-data-model-hash.h also
Yeah! Forgot it!
--
Gonzalo Paniagua Javier <gonzalo gnome-db org>
http://www.gnome-db.org/~gonzalo/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]