]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add additional character type types to supported data types for cdr_adaptive_odbc
authorJonathan Rose <jrose@digium.com>
Tue, 28 Feb 2012 21:52:06 +0000 (21:52 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 28 Feb 2012 21:52:06 +0000 (21:52 +0000)
The reporter was uable to use varchar utf8_unicode_ci with cdr_adaptive_odbc, so
this patch adds those along with some other character types to the list of types
cdr_adaptive_odbc will work using the varchar conditions. The problem wasn't really
UTF8 characters as much as it was a failure to respond to the exact type that was
declared/in use on that database.

(closes issue ASTERISK-19334)
Reported By: Igor Nikolaev
Patches:
cdr_adaptive_odbc.patch uploaded by Igor Nikolaev (license 6236)
........

Merged revisions 357455 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@357458 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_adaptive_odbc.c

index cb9bd0d529b29f97d4b94ebd3894700dd67a46c6..f9b5bf195be818d4a9bd0689377c85ea09daefb9 100644 (file)
@@ -431,6 +431,9 @@ static int odbc_log(struct ast_cdr *cdr)
                                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: