mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fixed default value diff
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user