#243 Use statement not available on Azure SQL
This commit is contained in:
parent
c84798e8bf
commit
1f928d34c2
@ -277,7 +277,9 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG
|
||||
}[] = [];
|
||||
await Promise.all(
|
||||
dbNames.split(",").map(async dbName => {
|
||||
await this.UseDB(dbName);
|
||||
if (dbNames.length>1) {
|
||||
await this.UseDB(dbName);
|
||||
}
|
||||
const resp: {
|
||||
TableName: string;
|
||||
TableSchema: string;
|
||||
@ -359,7 +361,9 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG
|
||||
}[] = [];
|
||||
await Promise.all(
|
||||
dbNames.split(",").map(async dbName => {
|
||||
await this.UseDB(dbName);
|
||||
if (dbNames.length>1) {
|
||||
await this.UseDB(dbName);
|
||||
}
|
||||
const resp: {
|
||||
TableWithForeignKey: string;
|
||||
FK_PartNo: number;
|
||||
|
Loading…
Reference in New Issue
Block a user