fix(package): Fixed Bug where mssql Driver can not handle multiple tables with same name but different schemas.

This commit is contained in:
Allan Amstadt 2020-02-13 17:55:30 +01:00
parent 8a09320345
commit 2a8648b40a

View File

@ -88,7 +88,7 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG
entities.forEach(ent => {
response
.filter(filterVal => {
return filterVal.TABLE_NAME === ent.tscName;
return filterVal.TABLE_NAME === ent.tscName && ent.schema === schema;
})
.forEach(resp => {
const tscName = resp.COLUMN_NAME;