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
03357ded
Commit
03357ded
authored
Oct 30, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.4 into 10.5
parents
066773e2
1fddccf6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
11 deletions
+15
-11
libmariadb
libmariadb
+1
-1
mysql-test/main/innodb_ext_key,off.rdiff
mysql-test/main/innodb_ext_key,off.rdiff
+6
-4
mysql-test/main/innodb_ext_key.result
mysql-test/main/innodb_ext_key.result
+3
-3
mysql-test/main/innodb_ext_key.test
mysql-test/main/innodb_ext_key.test
+3
-2
sql/sql_string.h
sql/sql_string.h
+2
-1
No files found.
libmariadb
@
62427520
Subproject commit
0cdc1656a70c52103b4329debf9ed02ccacfb3c2
Subproject commit
62427520a5ba20e42fe51f5045062a7a9cadb466
mysql-test/main/innodb_ext_key,off.rdiff
View file @
03357ded
--- innodb_ext_key.result
+++ innodb_ext_key,off.result
@@ -9,7 +9,7 @@
explain
select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity i_l_shipdate 8 const,const 1 Using index
+1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity
PRIMARY 4 const 5 Using where
+1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity
i_l_shipdate 4 const 6 Using where; Using index
flush status;
select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
count(*)
...
...
@@ -12,7 +14,7 @@
Handler_read_key 1
Handler_read_last 0
-Handler_read_next 1
+Handler_read_next
5
+Handler_read_next
6
Handler_read_prev 0
Handler_read_retry 0
Handler_read_rnd 0
...
...
@@ -93,7 +95,7 @@
where l_shipdate='1992-07-01' and l_orderkey=130;
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
+1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity
PRIMARY 4 const 5 Using where
+1 SIMPLE lineitem ref PRIMARY,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity
i_l_shipdate 4 const 6 Using where; Using index
flush status;
select max(l_linenumber) from lineitem
where l_shipdate='1992-07-01' and l_orderkey=130;
...
...
@@ -102,7 +104,7 @@
Handler_read_key 1
Handler_read_last 0
-Handler_read_next 0
+Handler_read_next
5
+Handler_read_next
6
Handler_read_prev 0
Handler_read_retry 0
Handler_read_rnd 0
...
...
mysql-test/main/innodb_ext_key.result
View file @
03357ded
...
...
@@ -26,12 +26,12 @@ Handler_read_rnd 0
Handler_read_rnd_deleted 0
Handler_read_rnd_next 0
explain
select count(*) from lineitem
select count(*) from lineitem
use index(primary)
where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE lineitem const PRIMARY
,i_l_shipdate,i_l_orderkey,i_l_orderkey_quantity
PRIMARY 8 const,const 1
1 SIMPLE lineitem const PRIMARY PRIMARY 8 const,const 1
flush status;
select count(*) from lineitem
select count(*) from lineitem
use index(primary)
where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01';
count(*)
1
...
...
mysql-test/main/innodb_ext_key.test
View file @
03357ded
...
...
@@ -17,6 +17,7 @@ use dbt3_s001;
--
disable_result_log
--
disable_warnings
--
source
include
/
dbt3_s001
.
inc
ANALYZE
TABLE
lineitem
PERSISTENT
FOR
COLUMNS
()
INDEXES
();
--
enable_warnings
--
enable_result_log
--
enable_query_log
...
...
@@ -28,10 +29,10 @@ select count(*) from lineitem where l_orderkey=130 and l_shipdate='1992-07-01';
show
status
like
'handler_read%'
;
explain
select
count
(
*
)
from
lineitem
select
count
(
*
)
from
lineitem
use
index
(primary)
where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01'
;
flush
status
;
select
count
(
*
)
from
lineitem
select
count
(
*
)
from
lineitem
use
index
(primary)
where l_orderkey=130 and l_linenumber=2 and l_shipdate='1992-07-01'
;
show
status
like
'handler_read%'
;
...
...
sql/sql_string.h
View file @
03357ded
...
...
@@ -314,7 +314,8 @@ class Static_binary_string : public Sql_alloc
}
void
q_append
(
const
char
*
data
,
size_t
data_len
)
{
memcpy
(
Ptr
+
str_length
,
data
,
data_len
);
if
(
data_len
)
memcpy
(
Ptr
+
str_length
,
data
,
data_len
);
DBUG_ASSERT
(
str_length
<=
UINT_MAX32
-
data_len
);
str_length
+=
(
uint
)
data_len
;
}
...
...
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