mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 06:06:00 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "4.2.8-beta.3",
|
"version": "4.2.8-beta.4",
|
||||||
"name": "dbgate-all",
|
"name": "dbgate-all",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
|
|||||||
@@ -165,7 +165,9 @@
|
|||||||
return `Rows: ${allRowCount.toLocaleString()}`;
|
return `Rows: ${allRowCount.toLocaleString()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCopiedValue(value) {
|
function extractCopiedValue(row, col) {
|
||||||
|
let value = row[col];
|
||||||
|
if (value === undefined) value = _.get(row, col);
|
||||||
if (value === null) return '(NULL)';
|
if (value === null) return '(NULL)';
|
||||||
if (value === undefined) return '(NoField)';
|
if (value === undefined) return '(NoField)';
|
||||||
if (_.isPlainObject(value) || _.isArray(value)) return JSON.stringify(value);
|
if (_.isPlainObject(value) || _.isArray(value)) return JSON.stringify(value);
|
||||||
@@ -339,7 +341,7 @@
|
|||||||
if (!rowData) return '';
|
if (!rowData) return '';
|
||||||
const line = colIndexes
|
const line = colIndexes
|
||||||
.map(col => realColumnUniqueNames[col])
|
.map(col => realColumnUniqueNames[col])
|
||||||
.map(col => getCopiedValue(rowData[col]))
|
.map(col => extractCopiedValue(rowData, col))
|
||||||
.join('\t');
|
.join('\t');
|
||||||
return line;
|
return line;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user