Fix a bug which returns incorrect values for SQL_DATETIME_SUB.
authorHiroshi Inoue <inoue@tpf.co.jp>
Sat, 30 Oct 2010 02:53:16 +0000 (02:53 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Sat, 30 Oct 2010 02:53:16 +0000 (02:53 +0000)
pgtypes.c
version.h

index 2d6b3a83db4e0b67eed28114d15cb758663efef2..d72c9bb327bbb73d752943199d26ca98d113a1ed 100644 (file)
--- a/pgtypes.c
+++ b/pgtypes.c
@@ -699,7 +699,7 @@ pgtype_attr_to_datetime_sub(const ConnectionClass *conn, OID type, int atttypmod
            return rettype - 100;
 #endif /* ODBCVER */
    }
-   return rettype;
+   return -1;
 }
 
 SQLSMALLINT
index c9740c5307361280c5567063df19b49daa549e31..597b7badb030c418bc8cfe82ee54f33874de16f0 100644 (file)
--- a/version.h
+++ b/version.h
@@ -12,6 +12,6 @@
 #define POSTGRESDRIVERVERSION      "09.00.0102"
 #define POSTGRES_RESOURCE_VERSION  "09.00.0102\0"
 #define PG_DRVFILE_VERSION     9,0,01,02
-#define PG_BUILD_VERSION       "201010290001"
+#define PG_BUILD_VERSION       "201010300001"
 
 #endif