Fix the bug that the first fetch operation doesn't work properly when
authorHiroshi Inoue <inoue@tpf.co.jp>
Thu, 10 Nov 2011 12:06:32 +0000 (12:06 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Thu, 10 Nov 2011 12:06:32 +0000 (12:06 +0000)
the operation is SQL_FETCH_ABSOLUTE or SQL_FETCH_LAST.

statement.c
version.h

index 5da38b37d974e3a802bdc55a94b6359fbf995ec3..c1d04a9cebe5b20839ef307ba947f028864127db 100644 (file)
@@ -590,7 +590,7 @@ inolog(":QR is %s", QR_has_valid_base(res) ? "valid" : "unknown");
            if (start < 0)
                QR_set_rowstart_in_cache(res, -1);
            else
-               QR_set_rowstart_in_cache(res, 0);
+               QR_set_rowstart_in_cache(res, start);
        }
        if (!QR_get_cursor(res))
            res->key_base = start;
index d8b358c99241d80560470dca110872e7975dc368..fd4791d6e6698f4084d745f784d8261175cbb1fc 100644 (file)
--- a/version.h
+++ b/version.h
@@ -12,6 +12,6 @@
 #define POSTGRESDRIVERVERSION      "09.00.0311"
 #define POSTGRES_RESOURCE_VERSION  "09.00.0311\0"
 #define PG_DRVFILE_VERSION     9,0,03,11
-#define PG_BUILD_VERSION       "201110310001"
+#define PG_BUILD_VERSION       "201111100001"
 
 #endif