aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/pgtypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/pgtypes.c')
-rw-r--r--src/interfaces/odbc/pgtypes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/odbc/pgtypes.c b/src/interfaces/odbc/pgtypes.c
index 8cade89b73f..5b6f85fbc39 100644
--- a/src/interfaces/odbc/pgtypes.c
+++ b/src/interfaces/odbc/pgtypes.c
@@ -1266,7 +1266,9 @@ ctype_length(Int2 ctype)
case SQL_C_BINARY:
case SQL_C_CHAR:
+#ifdef UNICODE_SUPPORT
case SQL_C_WCHAR:
+#endif /* UNICODE_SUPPORT */
return 0;
default: /* should never happen */