Skip to content

Commit 11904be

Browse files
committed
Anonymization - Mysql 8.0 - fix addAnonymizerIdColumnMySql: 'CREATE FUNCTION IF NOT EXISTS' is not stricly compatible with MYSQL 8.0 (beginning with MySQL 8.0.29)
1 parent 3b8d305 commit 11904be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Anonymization/Anonymizator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ protected function addAnonymizerIdColumnMySql(string $table): void
687687
} else {
688688
$this->databaseSession->executeStatement(
689689
<<<SQL
690-
CREATE FUNCTION IF NOT EXISTS ?::id() RETURNS BIGINT
690+
CREATE FUNCTION ?::id() RETURNS BIGINT
691691
DETERMINISTIC
692692
BEGIN
693693
SELECT `value` + 1 INTO @value FROM ?::table LIMIT 1;

0 commit comments

Comments
 (0)