Since commit 778571, SQLGetTypeInfo() filters SQL_TYPE_DATE, SQL_TYPE_TIME and SQL_TY...
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Thu, 25 Jul 2019 03:51:13 +0000 (12:51 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Thu, 1 Aug 2019 09:57:45 +0000 (18:57 +0900)
Per report from Michael Riksman.

info.c

diff --git a/info.c b/info.c
index 452dabfb9cfd8c1fc61b1abdf7e0ddfbedb656fb..7626f3a24c5e1783dad7737210e971d4fa5005da 100644 (file)
--- a/info.c
+++ b/info.c
@@ -1155,8 +1155,8 @@ PGAPI_GetTypeInfo(HSTMT hstmt,
    {
        EnvironmentClass    *env = CC_get_env(conn);
 
-       /* Filter unsupported data types */
-       if (EN_is_odbc2(env))
+       /* Filter unsupported data types when fSqlType = SQL_ALL_TYPES */
+       if (SQL_ALL_TYPES == fSqlType && EN_is_odbc2(env))
        {
            switch (sqlType)
            {