summaryrefslogtreecommitdiff
path: root/res/res_config_odbc.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-09-10 18:17:14 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-09-10 18:17:14 +0000
commitc9dd40c1f69a7e0239f924edd68155379e58958f (patch)
tree56a363d8fd12876ed31c7a13b03b741321ca774b /res/res_config_odbc.c
parentc5b0e6e78e35974386d32c20cae5349539ea0987 (diff)
Verify support for wide ODBC character types before using them.
(closes issue #15870) Reported by: nic_bellamy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_odbc.c')
-rw-r--r--res/res_config_odbc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index dff3bdd8e..0b1d5a14a 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -903,9 +903,11 @@ static int require_odbc(const char *database, const char *table, va_list ap)
case SQL_CHAR:
case SQL_VARCHAR:
case SQL_LONGVARCHAR:
+#ifdef HAVE_ODBC_WCHAR
case SQL_WCHAR:
case SQL_WVARCHAR:
case SQL_WLONGVARCHAR:
+#endif
case SQL_BINARY:
case SQL_VARBINARY:
case SQL_LONGVARBINARY: