dbgate-datalib 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/GridDisplay.js +1 -1
- package/lib/TableGridDisplay.js +3 -1
- package/package.json +5 -5
package/lib/GridDisplay.js
CHANGED
|
@@ -268,7 +268,7 @@ class GridDisplay {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
getColumns(columnFilter) {
|
|
271
|
-
return this.columns.filter(col => (0, dbgate_tools_1.filterName)(columnFilter, col.columnName));
|
|
271
|
+
return this.columns.filter(col => { var _a; return (0, dbgate_tools_1.filterName)(columnFilter, (_a = col.columnName) === null || _a === void 0 ? void 0 : _a.toString()); });
|
|
272
272
|
}
|
|
273
273
|
getGridColumns() {
|
|
274
274
|
return this.getColumns(null).filter(x => this.isColumnChecked(x));
|
package/lib/TableGridDisplay.js
CHANGED
|
@@ -201,7 +201,9 @@ class TableGridDisplay extends GridDisplay_1.GridDisplay {
|
|
|
201
201
|
table.foreignKeys.find(fk => fk.columns.length == 1 && fk.columns[0].columnName == col.columnName), isForeignKeyUnique: false });
|
|
202
202
|
if (res.foreignKey) {
|
|
203
203
|
const refTableInfo = this.dbinfo.tables.find(x => x.schemaName == res.foreignKey.refSchemaName && x.pureName == res.foreignKey.refTableName);
|
|
204
|
-
if (refTableInfo &&
|
|
204
|
+
if (refTableInfo &&
|
|
205
|
+
res.foreignKey.columns.length == 1 &&
|
|
206
|
+
(0, dbgate_tools_1.isTableColumnUnique)(refTableInfo, res.foreignKey.columns[0].refColumnName)) {
|
|
205
207
|
res.isForeignKeyUnique = true;
|
|
206
208
|
}
|
|
207
209
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.2.
|
|
2
|
+
"version": "6.2.1",
|
|
3
3
|
"name": "dbgate-datalib",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"lib"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"dbgate-sqltree": "^6.2.
|
|
17
|
-
"dbgate-tools": "^6.2.
|
|
18
|
-
"dbgate-filterparser": "^6.2.
|
|
16
|
+
"dbgate-sqltree": "^6.2.1",
|
|
17
|
+
"dbgate-tools": "^6.2.1",
|
|
18
|
+
"dbgate-filterparser": "^6.2.1",
|
|
19
19
|
"uuid": "^3.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"dbgate-types": "^6.2.
|
|
22
|
+
"dbgate-types": "^6.2.1",
|
|
23
23
|
"@types/node": "^13.7.0",
|
|
24
24
|
"jest": "^28.1.3",
|
|
25
25
|
"ts-jest": "^28.0.7",
|