summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorHiroshi Inoue2017-03-24 02:30:58 +0000
committerHiroshi Inoue2017-03-24 23:18:46 +0000
commit404b90c034be706133675570f9ce8010f588844a (patch)
tree4c1c8b097d4415022cf38325b395dad4c4002e3f /execute.c
parent94070db14b11de3cbf1fd3b510023e5057810e1c (diff)
Add #ifdef UNICODE_SUPPORT where there should be.
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/execute.c b/execute.c
index da8f81e..2c05543 100644
--- a/execute.c
+++ b/execute.c
@@ -1497,9 +1497,11 @@ PGAPI_PutData(HSTMT hstmt,
if (ctype == SQL_C_DEFAULT)
{
ctype = sqltype_to_default_ctype(conn, current_iparam->SQLType);
+#ifdef UNICODE_SUPPORT
if (SQL_C_WCHAR == ctype &&
CC_default_is_c(conn))
ctype = SQL_C_CHAR;
+#endif
}
if (SQL_NTS == cbValue)
{