From b0b002d21a63bfafb364219a4c707460d020a2ca Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sat, 30 Oct 2010 02:53:16 +0000 Subject: [PATCH] Fix a bug which returns incorrect values for SQL_DATETIME_SUB. --- pgtypes.c | 2 +- version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pgtypes.c b/pgtypes.c index 2d6b3a8..d72c9bb 100644 --- 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 diff --git a/version.h b/version.h index c9740c5..597b7ba 100644 --- 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 -- 2.39.5