Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d970e339
Commit
d970e339
authored
Jun 18, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0sel.c, row0ins.c:
Fix error in previous push
parent
01eb3d1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
innobase/row/row0ins.c
innobase/row/row0ins.c
+4
-2
innobase/row/row0sel.c
innobase/row/row0sel.c
+12
-4
No files found.
innobase/row/row0ins.c
View file @
d970e339
...
...
@@ -792,8 +792,10 @@ row_ins_foreign_check_on_constraint(
clust_rec
=
btr_pcur_get_rec
(
cascade
->
pcur
);
if
(
btr_pcur_get_low_match
(
cascade
->
pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
if
(
!
page_rec_is_user_rec
(
clust_rec
)
||
btr_pcur_get_low_match
(
cascade
->
pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
fprintf
(
stderr
,
"InnoDB: error in cascade of a foreign key op
\n
"
"InnoDB: index %s table %s
\n
"
,
index
->
name
,
...
...
innobase/row/row0sel.c
View file @
d970e339
...
...
@@ -609,8 +609,12 @@ row_sel_get_clust_rec(
clust_rec
=
btr_pcur_get_rec
(
&
(
plan
->
clust_pcur
));
if
(
btr_pcur_get_low_match
(
&
(
plan
->
clust_pcur
))
<
dict_index_get_n_unique
(
index
))
{
/* Note: only if the search ends up on a non-infimum record is the
low_match value the real match to the search tuple */
if
(
!
page_rec_is_user_rec
(
clust_rec
)
||
btr_pcur_get_low_match
(
&
(
plan
->
clust_pcur
))
<
dict_index_get_n_unique
(
index
))
{
ut_a
(
rec_get_deleted_flag
(
rec
));
ut_a
(
node
->
read_view
);
...
...
@@ -2322,8 +2326,12 @@ row_sel_get_clust_rec_for_mysql(
clust_rec
=
btr_pcur_get_rec
(
prebuilt
->
clust_pcur
);
if
(
btr_pcur_get_low_match
(
prebuilt
->
clust_pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
/* Note: only if the search ends up on a non-infimum record is the
low_match value the real match to the search tuple */
if
(
!
page_rec_is_user_rec
(
clust_rec
)
||
btr_pcur_get_low_match
(
prebuilt
->
clust_pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
/* In a rare case it is possible that no clust rec is found
for a delete-marked secondary index record: if in row0umod.c
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment