Correct a handling of offset in SQLBulkOperations.
authorHiroshi Inoue <inoue@tpf.co.jp>
Mon, 26 May 2003 00:47:50 +0000 (00:47 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Mon, 26 May 2003 00:47:50 +0000 (00:47 +0000)
pgapi30.c
version.h

index 94cb1509fe554da83638a574dff632e99266917e..07d08cc2a3e1b625225d4e2de3b55d49b849004a 100644 (file)
--- a/pgapi30.c
+++ b/pgapi30.c
@@ -1727,7 +1727,7 @@ PGAPI_BulkOperations(HSTMT hstmt, SQLSMALLINT operation)
            SC_set_error(stmt, STMT_INVALID_OPTION_IDENTIFIER, "bookmark isn't specified");
            return SQL_ERROR;
        }
-       bmark += (offset >> 4);
+       bmark = (UInt4 *)(((char *) bmark) + offset);
    }
    for (i = 0, processed = 0; i < opts->rowset_size; i++)
    {
index 7f8760ac1fbd64a706e0b8b307ab242da5233a5c..d3549679eed1b561121448f1160bde8a215c2544 100644 (file)
--- a/version.h
+++ b/version.h
@@ -9,8 +9,8 @@
 #ifndef __VERSION_H__
 #define __VERSION_H__
 
-#define POSTGRESDRIVERVERSION      "07.03.0102"
-#define POSTGRES_RESOURCE_VERSION  "07.03.0102\0"
-#define PG_DRVFILE_VERSION     7,3,1,02
+#define POSTGRESDRIVERVERSION      "07.03.0103"
+#define POSTGRES_RESOURCE_VERSION  "07.03.0103\0"
+#define PG_DRVFILE_VERSION     7,3,1,03
 
 #endif