QL: find dbscheme files that are contained within a subfolder

This commit is contained in:
Erik Krogh Kristensen
2021-10-15 21:37:23 +02:00
parent e060708367
commit 865e4f0441

View File

@@ -2415,8 +2415,8 @@ module YAML {
/** Gets the database scheme of this qlpack */
File getDBScheme() {
result.getBaseName() = this.getProperty("dbscheme") and
result = file.getParentContainer().getFile(any(string s | s.matches("%.dbscheme")))
result.getAbsolutePath() =
file.getParentContainer().getAbsolutePath() + "/" + this.getProperty("dbscheme")
}
pragma[noinline]