From e4a70289f930e3ac475425d686a778f82c563640 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Thu, 27 Jun 2019 21:35:42 +0900 Subject: [PATCH] Fix the bug that SQLGetDescField() for Field SQL_DESC_COUNT returns SQLINTEGER value which should be of type SQLSMALLINT. --- pgapi30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgapi30.c b/pgapi30.c index ba0dd6d..1fc7101 100644 --- a/pgapi30.c +++ b/pgapi30.c @@ -1237,7 +1237,7 @@ MYLOG(DETAIL_LOG_LEVEL, "RecN=%d allocated=%d\n", RecNumber, opts->allocated); ptr = opts->parameters[para_idx].used; break; case SQL_DESC_COUNT: - ret = SQL_IS_SMALLINT; + rettype = SQL_IS_SMALLINT; ival = opts->allocated; break; case SQL_DESC_ALLOC_TYPE: /* read-only */ -- 2.39.5