Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-18880-1777781
db-contest
Commits
b0bad711
Commit
b0bad711
authored
1 year ago
by
Ma1oneR6
Browse files
Options
Download
Patches
Plain Diff
fix(index): fix coredump
parent
bdf26659
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/execution/executor_index_scan.h
+1
-2
src/execution/executor_index_scan.h
with
1 addition
and
2 deletions
+1
-2
src/execution/executor_index_scan.h
+
1
−
2
View file @
b0bad711
...
@@ -50,7 +50,6 @@ private:
...
@@ -50,7 +50,6 @@ private:
std
::
unique_ptr
<
RmRecord
>
upper_cmp_key_
;
std
::
unique_ptr
<
RmRecord
>
upper_cmp_key_
;
bool
is_upper
;
bool
is_upper
;
std
::
vector
<
int
>
offsets_
;
std
::
vector
<
int
>
offsets_
;
// 00000 less
bool
checkCondition
(
const
std
::
unique_ptr
<
RmRecord
>
&
rec
)
{
bool
checkCondition
(
const
std
::
unique_ptr
<
RmRecord
>
&
rec
)
{
for
(
auto
&
cond
:
conds_
)
{
for
(
auto
&
cond
:
conds_
)
{
auto
col
=
get_col
(
cols_
,
cond
.
lhs_col
);
auto
col
=
get_col
(
cols_
,
cond
.
lhs_col
);
...
@@ -202,7 +201,7 @@ public:
...
@@ -202,7 +201,7 @@ public:
auto
rhs_pos
=
std
::
find
(
index_col_names_
.
begin
(),
index_col_names_
.
end
(),
rhs
.
lhs_col
.
col_name
)
-
index_col_names_
.
begin
();
auto
rhs_pos
=
std
::
find
(
index_col_names_
.
begin
(),
index_col_names_
.
end
(),
rhs
.
lhs_col
.
col_name
)
-
index_col_names_
.
begin
();
return
lhs_pos
<
rhs_pos
;
return
lhs_pos
<
rhs_pos
;
});
});
std
::
vector
<
std
::
vector
<
bool
>>
status
(
3
,
std
::
vector
<
bool
>
(
cond
s_
.
size
()
+
8
,
false
));
std
::
vector
<
std
::
vector
<
bool
>>
status
(
4
,
std
::
vector
<
bool
>
(
index_col_name
s_
.
size
()
+
8
,
false
));
size_t
cnt_left
=
0
,
cnt_right
=
0
;
size_t
cnt_left
=
0
,
cnt_right
=
0
;
for
(
size_t
i
=
0
;
i
<
conds_
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
conds_
.
size
();
i
++
)
{
const
auto
&
cond
=
conds_
[
i
];
const
auto
&
cond
=
conds_
[
i
];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets