Re: [gnome-db] Bug when getting Connection and Types



On Wed, Jan 02, 2002 at 04:18:55PM +0100, Rodrigo Moya wrote:
> yes it happens for all providers, there is some counter going wrong
> somewhere. I think it is in gda-server-recordset implementation, but I
> haven't had time to find it :-(

	Solved!

	Here you have the mini-patch. This works ok for me.

	Bye!

Index: gda-server-recordset.c
===================================================================
RCS file: /home/gpanjav/gnome-db-2/cvs/libgda/libgda/gda-server-recordset.c,v
retrieving revision 1.9
diff -u -r1.9 gda-server-recordset.c
--- gda-server-recordset.c	30 Dec 2001 16:29:44 -0000	1.9
+++ gda-server-recordset.c	2 Jan 2002 16:11:13 -0000
@@ -68,7 +68,7 @@
 	}
 
 	/* fetch all rows until the given one */
-	for (i = recset->priv->rows->len - 1; i <= pos; i++) {
+	for (i = recset->priv->rows->len; i <= pos; i++) {
 		if (recset->priv->fetch_func) {
 			if (i < 0)
 				i = 0;


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