Re: [gnome-db] libgda cursor support
- From: Murray Cumming <murrayc murrayc com>
- To: Vivien Malerba <vmalerba gmail com>
- Cc: gnome-db-list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] libgda cursor support
- Date: Thu, 27 Sep 2007 14:23:25 +0200
On Thu, 2007-09-27 at 13:49 +0200, Vivien Malerba wrote:
> > But then it tries to get the values by using
> > gda_data_model_iter_set_at_row(). But it displays the same value for
> > each row (the value for the last row). This is the output for my test
> > table:
>
> The reason is that gda_data_model_iter_set_at_row() returned FALSE
Ah, sorry for not seeing that.
> meaning it could not set the iter at the requested row, which is why
> it always returns the same value. The reason it returns FALSE is that
> it's not implemented (specifically the i_iter_at_row virtual method is
> not implemented). Of course it an iterator can move forward and
> backward, there could be a default implementation to move it to a
> desired row...
I guess this should be implemented with FETCH ABSOLUTE.
http://www.postgresql.org/docs/8.2/static/sql-fetch.html
Does that seem appropriate?
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]