[gnome-db] GdauiDataStore gives incorrect values



Hello,

I have a GdaDataModel, from which I can easily fetch data, e.g. with gda_data_model_get_value_at(). As for an external function I need the returned data in a struct, I tried to use GdauiDataStore:

store = gdaui_data_store_new(result);

If I get an iter to the wirst row with gtk_tree_model_get_iter_first(store, &iter), it returns TRUE. I can query the row number with gdaui_data_store_get_row_from_iter(), which returns 0 as it should (I guess).

Now, if I try to fetch the ID column (first column in result, type integer) with gtk_tree_model_get(store, &iter, 0, &test_int, -1), it puts some really weird value in test_int instead of what I expect.

Do I miss something? According the docs that's all I should do, but it seems not enough.

Thank you in advance!

Best,
Gergely



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