[Home]

Summary:ASTERISK-14810: [patch] res_config_odbc.c compilation fix for non-Unicode UnixODBC versions
Reporter:Nic Bellamy (nic_bellamy)Labels:
Date Opened:2009-09-09 18:52:26Date Closed:2009-09-10 13:21:13
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Resources/res_config_odbc
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) res_config_odbc_without-unicode-defines.patch
Description:res/res_config_odbc.c has a big switch statement, within which it uses SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR. These are only available on UnixODBC versions that support Unicode.

****** ADDITIONAL INFORMATION ******

Patch makes the use of the three unicode column types dependent on the definition of SQL_WCHAR; whether this is better done as part of ./configure or menuselect I shall leave up to the bug marshal.
Comments:By: Digium Subversion (svnbot) 2009-09-10 13:18:30

Repository: asterisk
Revision: 217638

U   trunk/configure
U   trunk/configure.ac
U   trunk/include/asterisk/autoconfig.h.in
U   trunk/res/res_config_odbc.c

------------------------------------------------------------------------
r217638 | tilghman | 2009-09-10 13:18:29 -0500 (Thu, 10 Sep 2009) | 4 lines

Verify support for wide ODBC character types before using them.
(closes issue ASTERISK-14810)
Reported by: nic_bellamy

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=217638

By: Digium Subversion (svnbot) 2009-09-10 13:19:54

Repository: asterisk
Revision: 217642

_U  branches/1.6.1/
U   branches/1.6.1/configure
U   branches/1.6.1/configure.ac
U   branches/1.6.1/include/asterisk/autoconfig.h.in
U   branches/1.6.1/res/res_config_odbc.c

------------------------------------------------------------------------
r217642 | tilghman | 2009-09-10 13:19:54 -0500 (Thu, 10 Sep 2009) | 11 lines

Merged revisions 217638 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r217638 | tilghman | 2009-09-10 13:17:14 -0500 (Thu, 10 Sep 2009) | 4 lines
 
 Verify support for wide ODBC character types before using them.
 (closes issue ASTERISK-14810)
  Reported by: nic_bellamy
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=217642

By: Digium Subversion (svnbot) 2009-09-10 13:21:13

Repository: asterisk
Revision: 217647

_U  branches/1.6.2/
U   branches/1.6.2/configure
U   branches/1.6.2/configure.ac
U   branches/1.6.2/include/asterisk/autoconfig.h.in
U   branches/1.6.2/res/res_config_odbc.c

------------------------------------------------------------------------
r217647 | tilghman | 2009-09-10 13:21:12 -0500 (Thu, 10 Sep 2009) | 11 lines

Merged revisions 217638 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r217638 | tilghman | 2009-09-10 13:17:14 -0500 (Thu, 10 Sep 2009) | 4 lines
 
 Verify support for wide ODBC character types before using them.
 (closes issue ASTERISK-14810)
  Reported by: nic_bellamy
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=217647