Re: [gnome-db] gda_xml_database



On Mon, 2002-12-23 at 21:41, Rui Barreiros wrote:
> Hi there,
> 
> i've downloaded gnomedb and gda, and i'm trying to create a xml db using
> default provider, here is the code:
> 
...

> 
> as there is no documentation (examples and such) about xml db, i tried
> using the api documentation, and it seem's to work well this way but
> when i run my app it send this errors:
> 
> (ngcataloghome:7758): GLib-GObject-WARNING **: invalid cast from
> `GdaTable' to `GdaDataModelArray'
> 
> ** (ngcataloghome:7758): CRITICAL **: file gda-data-model-array.c: line
> 236 (gda_data_model_array_set_n_columns): assertion
> `GDA_IS_DATA_MODEL_ARRAY (model)' failed
> 
ok, I fixed this one, which was due to a typo in gda-table.c, making it
subclass from GdaDataModel while it should be from GdaDataModelArray.

> ** (ngcataloghome:7758): CRITICAL **: file gda-data-model.c: line 259
> (gda_data_model_get_n_columns): assertion `CLASS (model)->get_n_columns
> != NULL' failed
> 
this is related to the same problem. Should be fixed also, so please get
CVS sources if you can and tell me if it works for you or not.

> and it just creates a filename with the database and table definition
> without any column. it seems it won't cast the GdaTable to
> GdaDataModelArray in gda-table.c on gda_table_add_field function thus
> not adding the field, and gives the error of the no columns.
> 
> Another doubt, wy is the file created with the following perms?
> 
> --wxrwx--T    1 brandon  brandon        82 Dec 23 20:40
> /tmp/catalogDB.db2
> 
> this way, not even the owner (in this case the user brandon) can't read
> the file.
> 
hmm, I'm not really sure what causes this one. I will try to reproduce
it and find its cause.

cheers





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