Skip to content

Commit c80618a

Browse files
committed
Compare fix
1 parent aaecd22 commit c80618a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crud/select/executor.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ function executor.execute(space, index, filter_func, opts)
5858
value = opts.after_tuple
5959
else
6060
local key_def = keydef_lib.new(index.parts)
61-
local after_tuple_key = key_def:extract_key(opts.after_tuple)
62-
63-
if key_def:compare_with_key(opts.after_tuple, opts.scan_value) == 0 then
64-
value = after_tuple_key
61+
if key_def:compare_with_key(opts.after_tuple, opts.scan_value) < 0 then
62+
value = key_def:extract_key(opts.after_tuple)
6563
end
6664
end
6765
end

0 commit comments

Comments
 (0)