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