Add missing 'IF EXISTS' to 'DROP EVENT' when exporting databases

Signed-off-by: Olivier Wahrenberger <O2Graphics@users.noreply.github.com>
This commit is contained in:
Olivier Wahrenberger 2020-01-26 16:19:26 +01:00 committed by William Desportes
parent 788aed0c31
commit ffc1a15885
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -999,7 +999,7 @@ class ExportSql extends ExportPlugin
foreach ($event_names as $event_name) {
if (! empty($GLOBALS['sql_drop_table'])) {
$text .= 'DROP EVENT '
$text .= 'DROP EVENT IF EXISTS '
. Util::backquote($event_name)
. $delimiter . $crlf;
}