fixed default value diff

This commit is contained in:
Jan Prochazka
2024-10-31 10:00:40 +01:00
parent 67386da136
commit 2aed60390c
2 changed files with 3 additions and 3 deletions

View File

@@ -184,13 +184,13 @@ const engines = [
const filterLocal = [ const filterLocal = [
// filter local testing // filter local testing
'-MySQL', 'MySQL',
'-MariaDB', '-MariaDB',
'-PostgreSQL', '-PostgreSQL',
'-SQL Server', '-SQL Server',
'-SQLite', '-SQLite',
'-CockroachDB', '-CockroachDB',
'ClickHouse', '-ClickHouse',
]; ];
const enginesPostgre = engines.filter(x => x.label == 'PostgreSQL'); const enginesPostgre = engines.filter(x => x.label == 'PostgreSQL');

View File

@@ -167,7 +167,7 @@ function testEqualDefaultValues(value1: string | null | undefined, value2: strin
if (value2 == null) return value1 == null || value1 == 'NULL'; if (value2 == null) return value1 == null || value1 == 'NULL';
if (_isString(value1) && _isString(value2)) { if (_isString(value1) && _isString(value2)) {
value1 = value1.trim(); value1 = value1.trim();
value2 = value1.trim(); value2 = value2.trim();
if (value1.startsWith("'") && value1.endsWith("'") && value2.startsWith("'") && value2.endsWith("'")) { if (value1.startsWith("'") && value1.endsWith("'") && value2.startsWith("'") && value2.endsWith("'")) {
return value1 == value2; return value1 == value2;
} }