Initialize flags member in QResultClass before calling QR_set_rowstart_in_cache(...
authorHiroshi Inoue <inoue@tpf.co.jp>
Sat, 20 Nov 2010 02:07:10 +0000 (02:07 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Sat, 20 Nov 2010 02:07:10 +0000 (02:07 +0000)
qresult.c
version.h

index 59c32ac0ab24ba21a90a43f4c6f38ff9e7406abe..863844adfe65e82ef43ea430329d9c0857f41cc3 100644 (file)
--- a/qresult.c
+++ b/qresult.c
@@ -162,6 +162,7 @@ QR_Constructor()
        rv->num_cached_rows = 0;
        rv->num_cached_keys = 0;
        rv->fetch_number = 0;
+       rv->flags = 0; /* must be cleared before calling QR_set_rowstart_in_cache() */
        QR_set_rowstart_in_cache(rv, -1);
        rv->key_base = -1;
        rv->recent_processed_row_count = -1;
@@ -175,7 +176,6 @@ QR_Constructor()
 
        rv->cache_size = 0;
        rv->rowset_size_include_ommitted = 1;
-       rv->flags = 0;
        rv->move_direction = 0;
        rv->keyset = NULL;
        rv->reload_count = 0;
index d5cf281fce6a7f53dce15c7d5d8790142def6e21..149b2d86b337343a8e223b53c1c5d2a51c5faf51 100644 (file)
--- a/version.h
+++ b/version.h
@@ -12,6 +12,6 @@
 #define POSTGRESDRIVERVERSION      "09.00.0202"
 #define POSTGRES_RESOURCE_VERSION  "09.00.0202\0"
 #define PG_DRVFILE_VERSION     9,0,02,02
-#define PG_BUILD_VERSION       "201011180001"
+#define PG_BUILD_VERSION       "201011200001"
 
 #endif