asterisk/addons
Alexandre Fournier 1503d0c14c 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-09 01:01:26 +02:00
..
ooh323c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
.gitignore Add .gitignore and .gitreview files 2015-04-11 19:43:43 -06:00
Makefile Build System: Create Makefile macro MOD_ADD_SOURCE. 2015-04-14 12:53:03 -04:00
app_mysql.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
cdr_mysql.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
chan_mobile.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
chan_ooh323.c chan_ooh323: fix rtptimeout general value checking 2014-10-15 10:03:05 +00:00
chan_ooh323.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
format_mp3.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
ooh323cDriver.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
ooh323cDriver.h media formats: re-architect handling of media for performance improvements 2014-07-20 22:06:33 +00:00
res_config_mysql.c res_config_mysql: Fix broken column type checking 2015-05-09 01:01:26 +02:00