Fix a crash bug which was introduced in 9.0.0200.
authorHiroshi Inoue <inoue@tpf.co.jp>
Sat, 6 Nov 2010 05:48:21 +0000 (05:48 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Sat, 6 Nov 2010 05:48:21 +0000 (05:48 +0000)
pgtypes.c
version.h

index d72c9bb327bbb73d752943199d26ca98d113a1ed..b14ec49e3b831060e088ed3fbb49429ece9e8086 100644 (file)
--- a/pgtypes.c
+++ b/pgtypes.c
@@ -1443,12 +1443,11 @@ getAtttypmodEtc(const StatementClass *stmt, int col, int *adtsize_or_longestlen)
 
                        for (i = 0; i < res->num_cached_rows; i++)
                        {
-                           if (tval = QR_get_value_backend_text(res, col, i), NULL != tval)
+                           if (tval = QR_get_value_backend_text(res, i, col), NULL != tval)
                            {
                                if (sptr = strchr(tval, '.'), NULL != sptr)
                                    if (sval = strlen(tval) - (sptr + 1 - tval), sval > maxscale)
                                        maxscale = sval;
-                                   
                            }
                        }
                        *adtsize_or_longestlen += (maxscale << 16);
index 5c6e577e6e77d5f6976bcb4fa8f47e360f5c7767..0e4bde9d31e18a99bec6a1ce863ec92be854f048 100644 (file)
--- a/version.h
+++ b/version.h
@@ -9,9 +9,9 @@
 #ifndef __VERSION_H__
 #define __VERSION_H__
 
-#define POSTGRESDRIVERVERSION      "09.00.0200"
-#define POSTGRES_RESOURCE_VERSION  "09.00.0200\0"
-#define PG_DRVFILE_VERSION     9,0,02,00
-#define PG_BUILD_VERSION       "201010300001"
+#define POSTGRESDRIVERVERSION      "09.00.0201"
+#define POSTGRES_RESOURCE_VERSION  "09.00.0201\0"
+#define PG_DRVFILE_VERSION     9,0,02,01
+#define PG_BUILD_VERSION       "201011060001"
 
 #endif