Skip to content

Commit 865e4f0

Browse files
committed
QL: find dbscheme files that are contained within a subfolder
1 parent e060708 commit 865e4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ql/src/codeql_ql/ast/Ast.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,8 +2415,8 @@ module YAML {
24152415

24162416
/** Gets the database scheme of this qlpack */
24172417
File getDBScheme() {
2418-
result.getBaseName() = this.getProperty("dbscheme") and
2419-
result = file.getParentContainer().getFile(any(string s | s.matches("%.dbscheme")))
2418+
result.getAbsolutePath() =
2419+
file.getParentContainer().getAbsolutePath() + "/" + this.getProperty("dbscheme")
24202420
}
24212421

24222422
pragma[noinline]

0 commit comments

Comments
 (0)