Merge pull request #13432 from tonedef/mysql8-catalog-backend

Add MySQL support to the catalog-backend plugin
This commit is contained in:
Fredrik Adelöw
2022-12-01 14:08:48 +01:00
committed by GitHub
20 changed files with 127 additions and 111 deletions
+2 -1
View File
@@ -29,6 +29,7 @@ export function isDatabaseConflictError(e: unknown) {
typeof message === 'string' &&
(/SQLITE_CONSTRAINT(?:_UNIQUE)?: UNIQUE/.test(message) ||
/UNIQUE constraint failed:/.test(message) ||
/unique constraint/.test(message))
/unique constraint/.test(message) ||
/Duplicate entry/.test(message)) // MySQL uniqueness error msg
);
}