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
52b32c60
Commit
52b32c60
authored
Feb 14, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.4 into 10.5
parents
6405ed63
c9bc10e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
1 deletion
+53
-1
mysql-test/suite/innodb/r/blob_cmp_empty.result
mysql-test/suite/innodb/r/blob_cmp_empty.result
+19
-0
mysql-test/suite/innodb/t/blob_cmp_empty.test
mysql-test/suite/innodb/t/blob_cmp_empty.test
+26
-0
mysql-test/suite/innodb_gis/disabled.def
mysql-test/suite/innodb_gis/disabled.def
+1
-0
storage/innobase/row/row0sel.cc
storage/innobase/row/row0sel.cc
+7
-1
No files found.
mysql-test/suite/innodb/r/blob_cmp_empty.result
0 → 100644
View file @
52b32c60
connect prevent_purge,localhost,root,,;
start transaction with consistent snapshot;
connection default;
SET @fill_amount = (@@innodb_page_size / 2 ) + 1;
CREATE TABLE t1 (col_text TEXT NOT NULL, KEY (col_text(9))) ENGINE=InnoDB;
INSERT INTO t1 (col_text) VALUES (REPEAT('x', @fill_amount));
UPDATE t1 SET col_text='';
UPDATE t1 SET col_text=REPEAT('y', @fill_amount);
connect con1,localhost,root,,;
SET @fill_amount = (@@innodb_page_size / 2 ) + 1;
BEGIN;
INSERT INTO t1 (col_text) VALUES (REPEAT('z', @fill_amount));
connection default;
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
disconnect con1;
disconnect prevent_purge;
DROP TABLE t1;
mysql-test/suite/innodb/t/blob_cmp_empty.test
0 → 100644
View file @
52b32c60
--
source
include
/
innodb_row_format
.
inc
--
source
include
/
count_sessions
.
inc
--
connect
(
prevent_purge
,
localhost
,
root
,,)
start
transaction
with
consistent
snapshot
;
--
connection
default
SET
@
fill_amount
=
(
@@
innodb_page_size
/
2
)
+
1
;
CREATE
TABLE
t1
(
col_text
TEXT
NOT
NULL
,
KEY
(
col_text
(
9
)))
ENGINE
=
InnoDB
;
INSERT
INTO
t1
(
col_text
)
VALUES
(
REPEAT
(
'x'
,
@
fill_amount
));
UPDATE
t1
SET
col_text
=
''
;
UPDATE
t1
SET
col_text
=
REPEAT
(
'y'
,
@
fill_amount
);
--
connect
(
con1
,
localhost
,
root
,,)
SET
@
fill_amount
=
(
@@
innodb_page_size
/
2
)
+
1
;
BEGIN
;
INSERT
INTO
t1
(
col_text
)
VALUES
(
REPEAT
(
'z'
,
@
fill_amount
));
--
connection
default
# If the bug is not fixed, CHECK TABLE will complain about wrong secondary index
# rows count
CHECK
TABLE
t1
;
--
disconnect
con1
--
disconnect
prevent_purge
DROP
TABLE
t1
;
--
source
include
/
wait_until_count_sessions
.
inc
mysql-test/suite/innodb_gis/disabled.def
View file @
52b32c60
...
@@ -12,3 +12,4 @@
...
@@ -12,3 +12,4 @@
rtree_concurrent_srch : MDEV-15284 COUNT(*) mismatch
rtree_concurrent_srch : MDEV-15284 COUNT(*) mismatch
rtree_recovery : MDEV-15284 COUNT(*) mismatch
rtree_recovery : MDEV-15284 COUNT(*) mismatch
rtree_compress2 : MDEV-16269 CHECK TABLE reports wrong count
storage/innobase/row/row0sel.cc
View file @
52b32c60
...
@@ -357,11 +357,16 @@ row_sel_sec_rec_is_for_clust_rec(
...
@@ -357,11 +357,16 @@ row_sel_sec_rec_is_for_clust_rec(
}
}
len
=
clust_len
;
len
=
clust_len
;
ulint
prefix_len
=
ifield
->
prefix_len
;
if
(
rec_offs_nth_extern
(
clust_offs
,
clust_pos
))
{
if
(
rec_offs_nth_extern
(
clust_offs
,
clust_pos
))
{
/* BLOB can contain prefix. */
len
-=
BTR_EXTERN_FIELD_REF_SIZE
;
len
-=
BTR_EXTERN_FIELD_REF_SIZE
;
if
(
!
len
)
{
goto
compare_blobs
;
}
}
}
if
(
ulint
prefix_len
=
ifield
->
prefix_len
)
{
if
(
prefix_len
)
{
len
=
dtype_get_at_most_n_mbchars
(
len
=
dtype_get_at_most_n_mbchars
(
col
->
prtype
,
col
->
mbminlen
,
col
->
prtype
,
col
->
mbminlen
,
col
->
mbmaxlen
,
prefix_len
,
len
,
col
->
mbmaxlen
,
prefix_len
,
len
,
...
@@ -374,6 +379,7 @@ row_sel_sec_rec_is_for_clust_rec(
...
@@ -374,6 +379,7 @@ row_sel_sec_rec_is_for_clust_rec(
check_for_blob:
check_for_blob:
if
(
rec_offs_nth_extern
(
clust_offs
,
if
(
rec_offs_nth_extern
(
clust_offs
,
clust_pos
))
{
clust_pos
))
{
compare_blobs:
if
(
!
row_sel_sec_rec_is_for_blob
(
if
(
!
row_sel_sec_rec_is_for_blob
(
col
->
mtype
,
col
->
prtype
,
col
->
mtype
,
col
->
prtype
,
col
->
mbminlen
,
col
->
mbminlen
,
...
...
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