From 2aed60390c0e05be64e15ba57a0cf2b04134081a Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 31 Oct 2024 10:00:40 +0100 Subject: [PATCH] fixed default value diff --- integration-tests/engines.js | 4 ++-- packages/tools/src/diffTools.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/engines.js b/integration-tests/engines.js index 455ec4c60..516e1e896 100644 --- a/integration-tests/engines.js +++ b/integration-tests/engines.js @@ -184,13 +184,13 @@ const engines = [ const filterLocal = [ // filter local testing - '-MySQL', + 'MySQL', '-MariaDB', '-PostgreSQL', '-SQL Server', '-SQLite', '-CockroachDB', - 'ClickHouse', + '-ClickHouse', ]; const enginesPostgre = engines.filter(x => x.label == 'PostgreSQL'); diff --git a/packages/tools/src/diffTools.ts b/packages/tools/src/diffTools.ts index 9f28c8bd2..e441b56e0 100644 --- a/packages/tools/src/diffTools.ts +++ b/packages/tools/src/diffTools.ts @@ -167,7 +167,7 @@ function testEqualDefaultValues(value1: string | null | undefined, value2: strin if (value2 == null) return value1 == null || value1 == 'NULL'; if (_isString(value1) && _isString(value2)) { value1 = value1.trim(); - value2 = value1.trim(); + value2 = value2.trim(); if (value1.startsWith("'") && value1.endsWith("'") && value2.startsWith("'") && value2.endsWith("'")) { return value1 == value2; }