Update of /cvsroot/monetdb/clients/src/odbc/driver
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29864
Modified Files:
SQLFetchScroll.c
Log Message:
Layout.
Index: SQLFetchScroll.c
===================================================================
RCS file: /cvsroot/monetdb/clients/src/odbc/driver/SQLFetchScroll.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- SQLFetchScroll.c 24 May 2007 15:36:25 -0000 1.3
+++ SQLFetchScroll.c 24 May 2007 15:56:20 -0000 1.4
@@ -90,10 +90,12 @@
stmt->startRow = stmt->startRow - RowSetSize;
break;
case SQL_FETCH_RELATIVE:
- if ((stmt->currentRow != 0 || FetchOffset <= 0)
&&(stmt->currentRow != stmt->rowcount || FetchOffset >= 0)) {
- if ((stmt->currentRow == 0 && FetchOffset <= 0)
||(stmt->startRow == 0 && FetchOffset < 0) ||(stmt->startRow > 0 &&
(int)stmt->startRow + FetchOffset < 0 &&
-
/* FetchOffset must be negative, so cast
works */
-
(unsigned int)-FetchOffset > RowSetSize))
{
+ if ((stmt->currentRow != 0 || FetchOffset <= 0) &&
+ (stmt->currentRow != stmt->rowcount || FetchOffset >= 0)) {
+ if ((stmt->currentRow == 0 && FetchOffset <= 0) ||
+ (stmt->startRow == 0 && FetchOffset < 0) ||
+ (stmt->startRow > 0 && (int) stmt->startRow +
FetchOffset < 0 &&
+ /* FetchOffset must be negative, so cast works */
(unsigned int) -FetchOffset > RowSetSize)) {
stmt->startRow = 0;
stmt->State = FETCHED;
return SQL_NO_DATA;
-------------------------------------------------------------------------
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