Merge #19090 - Fix #18495 - exporting of triggers

Pull-request: #19090
Fixes: #18495

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2024-04-15 17:21:10 +02:00
commit ec78dfd088
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 2 deletions

View File

@ -2127,7 +2127,7 @@ class ExportSql extends ExportPlugin
$usedAlias = true;
}
$triggerQuery .= 'DELIMITER ;' . $crlf;
$triggerQuery .= $delimiter . $crlf . 'DELIMITER ;' . $crlf;
}
// One warning per table.

View File

@ -1061,7 +1061,7 @@ class ExportSqlTest extends AbstractTestCase
$this->assertIsString($result);
$this->assertStringContainsString('-- Triggers test_table', $result);
$this->assertStringContainsString(
'CREATE TRIGGER `test_trigger` AFTER INSERT ON `test_table` FOR EACH ROW BEGIN END',
"CREATE TRIGGER `test_trigger` AFTER INSERT ON `test_table` FOR EACH ROW BEGIN END\n$$",
$result
);