asterisk/addons
Alexandre Fournier 9370db107a res_config_mysql: Fix broken column type checking
MySQL configuration engine contains a bug in require_mysql(). This
function is used for column type checking in tables. This bug only
affects DATETIME, DATE and FLOAT types.

It came from mixing the first condition (switch-case-like
if/then/else), to check the expected column type, with the second
condition, to check the actual column type against the expected column
type. Both conditions must be checked separately in order to avoid the
execution of the wrong block.

ASTERISK-18252 #comment This patch might fix the issue
Reported by: Gareth Blades

ASTERISK-25041 #close
Reported by: Alexandre Fournier
Tested by: Alexandre Fournier

Change-Id: I0b8bf7e68ab938be8e6525a249260cb648cb0bfa
2015-05-13 06:40:48 -05:00
..
ooh323c Fix typo's (retrieve, specified, address). 2015-01-23 14:51:03 +00:00
.gitignore Add .gitignore and .gitreview files 2015-04-12 13:49:40 -05:00
app_mysql.c Clean up and ensure proper usage of alloca() 2012-07-31 20:21:43 +00:00
app_saycountpl.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
cdr_mysql.c Remove some dead code and additionally handle a case that wasn't handled. 2012-12-10 01:27:47 +00:00
chan_mobile.c addons/chan_mobile: Increase buffer size of UCS2 encoded SMS messages 2014-11-09 00:24:53 +00:00
chan_ooh323.c chan_ooh323: fix rtptimeout general value checking 2014-10-15 09:02:50 +00:00
chan_ooh323.h Asterisk media architecture conversion - no more format bitfields 2011-02-03 16:22:10 +00:00
format_mp3.c format_mp3: Fix a possible crash in mp3_read(). 2012-05-12 00:03:42 +00:00
Makefile Merged revisions 280742 via svnmerge from 2010-08-03 18:50:14 +00:00
ooh323cDriver.c Added direct media support to ooh323 channel driver 2012-07-04 21:42:05 +00:00
ooh323cDriver.h Merged revisions 308242 via svnmerge from 2011-02-18 00:11:06 +00:00
res_config_mysql.c res_config_mysql: Fix broken column type checking 2015-05-13 06:40:48 -05:00