preloaded rows works with autoinc columns (fix for mssql)

This commit is contained in:
SPRINX0\prochazka
2024-08-29 10:53:56 +02:00
parent e982e8cd9b
commit c097e78dd0
5 changed files with 40 additions and 7 deletions

View File

@@ -116,7 +116,14 @@ export class DatabaseInfoAlterProcessor {
throw new Error('recreateTable not implemented for DatabaseInfoAlterProcessor');
}
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[], insertOnly: string[]) {
fillPreloadedRows(
table: NamedObjectInfo,
oldRows: any[],
newRows: any[],
key: string[],
insertOnly: string[],
autoIncrementColumn: string
) {
const tableInfo = this.db.tables.find(x => x.pureName == table.pureName && x.schemaName == table.schemaName);
tableInfo.preloadedRows = newRows;
tableInfo.preloadedRowsKey = key;