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
644a6b10
Commit
644a6b10
authored
Nov 14, 2023
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '11.0' into mariadb-11.0.4
parents
48af85db
13cc1963
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
4 deletions
+67
-4
.github/pull_request_template.md
.github/pull_request_template.md
+1
-1
VERSION
VERSION
+1
-1
mysql-test/main/func_json.result
mysql-test/main/func_json.result
+21
-0
mysql-test/main/func_json.test
mysql-test/main/func_json.test
+23
-0
mysql-test/main/order_by_innodb.result
mysql-test/main/order_by_innodb.result
+10
-0
mysql-test/main/order_by_innodb.test
mysql-test/main/order_by_innodb.test
+9
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
strings/json_lib.c
strings/json_lib.c
+1
-1
No files found.
.github/pull_request_template.md
View file @
644a6b10
...
@@ -32,7 +32,7 @@ Without automated tests, future regressions in the expected behavior can't be au
...
@@ -32,7 +32,7 @@ Without automated tests, future regressions in the expected behavior can't be au
If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.
If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.
<!--
<!--
Tick one of the following boxes [x] to help us understand if the base branch for the PR is correct. (Currently the earliest maintained branch is 10.
3
)
Tick one of the following boxes [x] to help us understand if the base branch for the PR is correct. (Currently the earliest maintained branch is 10.
4
)
-->
-->
## Basing the PR against the correct MariaDB version
## Basing the PR against the correct MariaDB version
-
[ ]
*This is a new feature and the PR is based against the latest MariaDB development branch.*
-
[ ]
*This is a new feature and the PR is based against the latest MariaDB development branch.*
...
...
VERSION
View file @
644a6b10
MYSQL_VERSION_MAJOR=11
MYSQL_VERSION_MAJOR=11
MYSQL_VERSION_MINOR=0
MYSQL_VERSION_MINOR=0
MYSQL_VERSION_PATCH=
4
MYSQL_VERSION_PATCH=
5
SERVER_MATURITY=stable
SERVER_MATURITY=stable
mysql-test/main/func_json.result
View file @
644a6b10
...
@@ -2545,3 +2545,24 @@ SET @@collation_connection= @save_collation_connection;
...
@@ -2545,3 +2545,24 @@ SET @@collation_connection= @save_collation_connection;
#
#
# End of 10.9 Test
# End of 10.9 Test
#
#
#
# MDEV-32007: JSON_VALUE and JSON_EXTRACT doesn't handle dash (-)
# as first character in key
#
CREATE TEMPORARY TABLE IF NOT EXISTS jsonTest AS
SELECT '{ "-1234" : "something",
"12-34" : "else",
"1234-" : "and",
"1234" : "match" }' AS 'message';
SELECT JSON_SEARCH(message, 'one', 'something') AS t1_path,
JSON_VALUE(message, JSON_UNQUOTE(JSON_SEARCH(message, 'one', 'something'))) AS t1_result,
JSON_SEARCH(message, 'one', 'else') AS t2_path,
JSON_VALUE(message, JSON_UNQUOTE(JSON_SEARCH(message, 'one', 'else'))) AS t2_result,
JSON_SEARCH(message, 'one', 'and') AS t3_path,
JSON_VALUE(message, JSON_UNQUOTE(JSON_SEARCH(message, 'one', 'and'))) AS t3_result,
JSON_SEARCH(message, 'one', 'match') AS t4_path,
JSON_VALUE(message, JSON_UNQUOTE(JSON_SEARCH(message, 'one', 'match'))) AS t4_result
FROM jsonTest;
t1_path t1_result t2_path t2_result t3_path t3_result t4_path t4_result
"$.-1234" something "$.12-34" else "$.1234-" and "$.1234" match
# End of 11.0 test
mysql-test/main/func_json.test
View file @
644a6b10
...
@@ -1828,3 +1828,26 @@ SET @@collation_connection= @save_collation_connection;
...
@@ -1828,3 +1828,26 @@ SET @@collation_connection= @save_collation_connection;
--
echo
#
--
echo
#
--
echo
# End of 10.9 Test
--
echo
# End of 10.9 Test
--
echo
#
--
echo
#
--
echo
#
--
echo
# MDEV-32007: JSON_VALUE and JSON_EXTRACT doesn't handle dash (-)
--
echo
# as first character in key
--
echo
#
CREATE
TEMPORARY
TABLE
IF
NOT
EXISTS
jsonTest
AS
SELECT
'{ "-1234" : "something",
"12-34" : "else",
"1234-" : "and",
"1234" : "match" }'
AS
'message'
;
SELECT
JSON_SEARCH
(
message
,
'one'
,
'something'
)
AS
t1_path
,
JSON_VALUE
(
message
,
JSON_UNQUOTE
(
JSON_SEARCH
(
message
,
'one'
,
'something'
)))
AS
t1_result
,
JSON_SEARCH
(
message
,
'one'
,
'else'
)
AS
t2_path
,
JSON_VALUE
(
message
,
JSON_UNQUOTE
(
JSON_SEARCH
(
message
,
'one'
,
'else'
)))
AS
t2_result
,
JSON_SEARCH
(
message
,
'one'
,
'and'
)
AS
t3_path
,
JSON_VALUE
(
message
,
JSON_UNQUOTE
(
JSON_SEARCH
(
message
,
'one'
,
'and'
)))
AS
t3_result
,
JSON_SEARCH
(
message
,
'one'
,
'match'
)
AS
t4_path
,
JSON_VALUE
(
message
,
JSON_UNQUOTE
(
JSON_SEARCH
(
message
,
'one'
,
'match'
)))
AS
t4_result
FROM
jsonTest
;
--
echo
# End of 11.0 test
mysql-test/main/order_by_innodb.result
View file @
644a6b10
...
@@ -306,3 +306,13 @@ a b c
...
@@ -306,3 +306,13 @@ a b c
6 2 26
6 2 26
6 3 36
6 3 36
drop table t1;
drop table t1;
#
# MDEV-31116: SIGSEGV in test_if_skip_sort_order|JOIN::optimize_stage2
#
CREATE TABLE t1 (a BINARY (2),b BINARY (1),KEY(a)) ENGINE=innodb;
INSERT INTO t1 select 'ab', NULL from seq_1_to_14;
SELECT * FROM t1 WHERE a IN (SELECT a FROM t1 WHERE a >'') ORDER BY a LIMIT 1;
a b
ab NULL
DROP TABLE t1;
# End of 11.0 tests
mysql-test/main/order_by_innodb.test
View file @
644a6b10
...
@@ -252,3 +252,12 @@ explain select * from t1 force index(r) order by a,b limit 20;
...
@@ -252,3 +252,12 @@ explain select * from t1 force index(r) order by a,b limit 20;
explain
select
*
from
t1
force
index
(
r
)
order
by
a
desc
,
b
limit
20
;
explain
select
*
from
t1
force
index
(
r
)
order
by
a
desc
,
b
limit
20
;
select
*
from
t1
force
index
(
r
)
order
by
a
desc
,
b
limit
20
;
select
*
from
t1
force
index
(
r
)
order
by
a
desc
,
b
limit
20
;
drop
table
t1
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-31116: SIGSEGV in test_if_skip_sort_order|JOIN::optimize_stage2
--
echo
#
CREATE
TABLE
t1
(
a
BINARY
(
2
),
b
BINARY
(
1
),
KEY
(
a
))
ENGINE
=
innodb
;
INSERT
INTO
t1
select
'ab'
,
NULL
from
seq_1_to_14
;
SELECT
*
FROM
t1
WHERE
a
IN
(
SELECT
a
FROM
t1
WHERE
a
>
''
)
ORDER
BY
a
LIMIT
1
;
DROP
TABLE
t1
;
--
echo
# End of 11.0 tests
sql/sql_select.cc
View file @
644a6b10
...
@@ -26596,7 +26596,7 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
...
@@ -26596,7 +26596,7 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
!table->is_clustering_key(best_key)))
!table->is_clustering_key(best_key)))
goto use_filesort;
goto use_filesort;
if (table->opt_range_keys.is_set(best_key) && best_key != ref_key)
if (
select &&
table->opt_range_keys.is_set(best_key) && best_key != ref_key)
{
{
key_map tmp_map;
key_map tmp_map;
tmp_map.clear_all(); // Force the creation of quick select
tmp_map.clear_all(); // Force the creation of quick select
strings/json_lib.c
View file @
644a6b10
...
@@ -1093,7 +1093,7 @@ static int json_path_transitions[N_PATH_STATES][N_PATH_CLASSES]=
...
@@ -1093,7 +1093,7 @@ static int json_path_transitions[N_PATH_STATES][N_PATH_CLASSES]=
/* AS */
{
JE_EOS
,
JE_SYN
,
JE_SYN
,
JE_SYN
,
PS_T
,
PS_PT
,
JE_SYN
,
PS_NEG
,
/* AS */
{
JE_EOS
,
JE_SYN
,
JE_SYN
,
JE_SYN
,
PS_T
,
PS_PT
,
JE_SYN
,
PS_NEG
,
PS_Z
,
PS_INT
,
PS_LAST
,
PS_AS
,
JE_SYN
,
JE_SYN
,
JE_SYN
,
PS_Z
,
PS_INT
,
PS_LAST
,
PS_AS
,
JE_SYN
,
JE_SYN
,
JE_SYN
,
JE_NOT_JSON_CHR
,
JE_BAD_CHR
},
JE_NOT_JSON_CHR
,
JE_BAD_CHR
},
/* KEY */
{
JE_EOS
,
PS_KNM
,
PS_KWD
,
JE_SYN
,
PS_KNM
,
PS_KNM
,
JE_SYN
,
JE_SYN
,
/* KEY */
{
JE_EOS
,
PS_KNM
,
PS_KWD
,
JE_SYN
,
PS_KNM
,
PS_KNM
,
JE_SYN
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
JE_SYN
,
PS_KEYX
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
PS_KNM
,
JE_SYN
,
PS_KEYX
,
PS_KNM
,
JE_NOT_JSON_CHR
,
JE_BAD_CHR
},
JE_NOT_JSON_CHR
,
JE_BAD_CHR
},
/* KNM */
{
PS_KOK
,
PS_KNM
,
PS_AST
,
PS_EAR
,
PS_KNM
,
PS_KNM
,
PS_EKY
,
PS_KNM
,
/* KNM */
{
PS_KOK
,
PS_KNM
,
PS_AST
,
PS_EAR
,
PS_KNM
,
PS_KNM
,
PS_EKY
,
PS_KNM
,
...
...
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