Fix #3956: Getting empty table list for databaseSchema (#3967)

This commit is contained in:
Sriharsha Chintalapani 2022-04-08 10:38:05 -07:00 committed by GitHub
parent a3ceea6b63
commit 52abe152cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ public class DatabaseSchemaRepository extends EntityRepository<DatabaseSchema> {
if (schema == null) {
return null;
}
List<String> tableIds = findTo(schema.getId(), Entity.DATABASE, Relationship.CONTAINS, Entity.TABLE);
List<String> tableIds = findTo(schema.getId(), Entity.DATABASE_SCHEMA, Relationship.CONTAINS, Entity.TABLE);
return EntityUtil.populateEntityReferences(tableIds, Entity.TABLE);
}