Skip to content

Commit 40241ac

Browse files
authored
Merge pull request #10425 from hvitved/ruby/bad-join-fix
Ruby: Fix bad join-order in DB upgrade script
2 parents a939156 + 5cfed75 commit 40241ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/upgrades/4ba51641799d2aaa315c7323931e2dd2a94c9f9d/locations_default.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ where
5858
ruby_ast_node_info(node, _, _, loc) and
5959
exists(Location first |
6060
body_statement(node, 0, first) and
61-
locations_default(first, file, start_line, start_column, _, _)
61+
locations_default(first, pragma[only_bind_into](file), start_line, start_column, _, _)
6262
) and
6363
exists(Location last |
6464
last = max(Location l, int i | body_statement(node, i, l) | l order by i) and
65-
locations_default(last, file, _, _, end_line, end_column)
65+
locations_default(last, pragma[only_bind_into](file), _, _, end_line, end_column)
6666
)
6767
)
6868
select loc, file, start_line, start_column, end_line, end_column

0 commit comments

Comments
 (0)