diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-06-19 15:47:55 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-06-19 15:47:55 +0000 |
commit | 6b53ec413d650d2df9c6651e0175bf5af61d4f3c (patch) | |
tree | 2b28a261ec382e95c11bb5e28eb5b7cf612cafae /res/res_config_odbc.c | |
parent | e85296e24493709535857ae10e70d1067b9691ea (diff) |
Fix 2 typos and add support for wide character types.
Reported by Benny Amorsen via the asterisk-users mailing list.
http://lists.digium.com/pipermail/asterisk-users/2009-June/233622.html
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_odbc.c')
-rw-r--r-- | res/res_config_odbc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index bb43de607..dff3bdd8e 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -903,6 +903,9 @@ static int require_odbc(const char *database, const char *table, va_list ap) case SQL_CHAR: case SQL_VARCHAR: case SQL_LONGVARCHAR: + case SQL_WCHAR: + case SQL_WVARCHAR: + case SQL_WLONGVARCHAR: case SQL_BINARY: case SQL_VARBINARY: case SQL_LONGVARBINARY: @@ -984,7 +987,7 @@ static int require_odbc(const char *database, const char *table, va_list ap) if (type != RQ_UINTEGER1 && type != RQ_INTEGER1 && type != RQ_UINTEGER2 && type != RQ_INTEGER2 && type != RQ_UINTEGER3 && type != RQ_INTEGER3 && - type != RQ_UINTEGER4) { + type != RQ_INTEGER4) { WARN_TYPE_OR_LENGTH(size) } break; @@ -1003,7 +1006,7 @@ static int require_odbc(const char *database, const char *table, va_list ap) type != RQ_UINTEGER2 && type != RQ_INTEGER2 && type != RQ_UINTEGER3 && type != RQ_INTEGER3 && type != RQ_UINTEGER4 && type != RQ_INTEGER4 && - type != RQ_UINTEGER8) { + type != RQ_INTEGER8) { WARN_TYPE_OR_LENGTH(size) } break; |