Hi!

It should normally work as you mention.

Can you specify which Libgda version you use, and do you have some time to
create a small code sample so I can easily reproduce it?

Regards,

Vivien


On 30 July 2014 08:37, Gergely Polonkai <[email protected]> wrote:

> 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
>
> _______________________________________________
> gnome-db-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gnome-db-list
>
>
_______________________________________________
gnome-db-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to