Skip to content

Commit

Permalink
Merge #19090 - Fix #18495 - exporting of triggers
Browse files Browse the repository at this point in the history
Pull-request: #19090
Fixes: #18495

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 15, 2024
2 parents 698a295 + ec2d9ba commit ec78dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/classes/Plugins/Export/ExportSql.php
Expand Up @@ -2127,7 +2127,7 @@ public function exportStructure(
$usedAlias = true;
}

$triggerQuery .= 'DELIMITER ;' . $crlf;
$triggerQuery .= $delimiter . $crlf . 'DELIMITER ;' . $crlf;
}

// One warning per table.
Expand Down
2 changes: 1 addition & 1 deletion test/classes/Plugins/Export/ExportSqlTest.php
Expand Up @@ -1061,7 +1061,7 @@ public function testExportStructure(): void
$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
);

Expand Down

0 comments on commit ec78dfd

Please sign in to comment.