mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 19:33:59 +00:00
fix
This commit is contained in:
@@ -87,7 +87,7 @@ export function dumpSqlDelete(dmp: SqlDumper, cmd: Delete) {
|
|||||||
if (cmd.alterTableDeleteSyntax) {
|
if (cmd.alterTableDeleteSyntax) {
|
||||||
dmp.put('^alter ^table ');
|
dmp.put('^alter ^table ');
|
||||||
dumpSqlSourceRef(dmp, cmd.from);
|
dumpSqlSourceRef(dmp, cmd.from);
|
||||||
dmp.put('^delete ');
|
dmp.put(' ^delete ');
|
||||||
} else {
|
} else {
|
||||||
dmp.put('^delete ^from ');
|
dmp.put('^delete ^from ');
|
||||||
dumpSqlSourceRef(dmp, cmd.from);
|
dumpSqlSourceRef(dmp, cmd.from);
|
||||||
|
|||||||
@@ -44,8 +44,12 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
...col,
|
...col,
|
||||||
...extractDataType(col.dataType),
|
...extractDataType(col.dataType),
|
||||||
})),
|
})),
|
||||||
primaryKey: { columns: (table.primaryKeyColumns || '').split(',').map((columnName) => ({ columnName })) },
|
primaryKey: table.primaryKeyColumns
|
||||||
sortingKey: { columns: (table.sortingKeyColumns || '').split(',').map((columnName) => ({ columnName })) },
|
? { columns: (table.primaryKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||||
|
: null,
|
||||||
|
sortingKey: table.sortingKeyColumns
|
||||||
|
? { columns: (table.sortingKeyColumns || '').split(',').map((columnName) => ({ columnName })) }
|
||||||
|
: null,
|
||||||
foreignKeys: [],
|
foreignKeys: [],
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user