This commit is contained in:
2021-04-08 19:24:17 +02:00
parent 4cd6dd2067
commit adf7f19df7
3 changed files with 3 additions and 7 deletions

View File

@@ -347,7 +347,8 @@ class MySQL extends SQL {
if ($param instanceof CurrentTable) {
$values[] = $this->getUnsafeValue($trigger->getTable());
} else {
$values[] = $this->columnName("NEW." . $param->getName());
$prefix = ($trigger->getEvent() !== "DELETE" ? "NEW." : "OLD.");
$values[] = $this->columnName($prefix . $param->getName());
}
}