Update of /cvsroot/monetdb/clients/src/odbc/driver
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9121

Modified Files:
        SQLFetchScroll.c 
Log Message:
It's a good idea to set startRow in *all* cases.

This fixes a bug which was reported through the mailing list.


Index: SQLFetchScroll.c
===================================================================
RCS file: /cvsroot/monetdb/clients/src/odbc/driver/SQLFetchScroll.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- SQLFetchScroll.c    3 Jan 2007 12:17:47 -0000       1.2
+++ SQLFetchScroll.c    24 May 2007 15:36:25 -0000      1.3
@@ -46,7 +46,7 @@
 {
        assert(stmt->hdl);
 
-       if ((stmt->cursorType == SQL_CURSOR_FORWARD_ONLY || 
stmt->cursorScrollable == SQL_NONSCROLLABLE) &&FetchOrientation != 
SQL_FETCH_NEXT) {
+       if ((stmt->cursorType == SQL_CURSOR_FORWARD_ONLY || 
stmt->cursorScrollable == SQL_NONSCROLLABLE) && FetchOrientation != 
SQL_FETCH_NEXT) {
                /* Fetch type out of range */
                addStmtError(stmt, "HY106", NULL, 0);
                return SQL_ERROR;
@@ -63,6 +63,7 @@
                        stmt->State = FETCHED;
                        return SQL_NO_DATA;
                }
+               stmt->startRow = stmt->currentRow;
                break;
        case SQL_FETCH_FIRST:
                stmt->startRow = 0;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to