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
a01abad6
Commit
a01abad6
authored
Jan 18, 2023
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.5' into 10.6
parents
a8c5635c
da798c95
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
4 deletions
+30
-4
cmake/pcre.cmake
cmake/pcre.cmake
+2
-2
extra/wolfssl/CMakeLists.txt
extra/wolfssl/CMakeLists.txt
+2
-0
extra/wolfssl/wolfssl
extra/wolfssl/wolfssl
+1
-1
mysql-test/main/func_json.result
mysql-test/main/func_json.result
+12
-0
mysql-test/main/func_json.test
mysql-test/main/func_json.test
+12
-0
sql/item_jsonfunc.cc
sql/item_jsonfunc.cc
+1
-1
No files found.
cmake/pcre.cmake
View file @
a01abad6
...
...
@@ -54,8 +54,8 @@ MACRO(BUNDLE_PCRE2)
ExternalProject_Add
(
pcre2
PREFIX
"
${
dir
}
"
URL
"https://github.com/P
hilipHazel/pcre2/releases/download/pcre2-10.40/pcre2-10.40
.zip"
URL_MD5
798698846982ce171d881ed0d7535c2a
URL
"https://github.com/P
CRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42
.zip"
URL_MD5
fe90992fbfb03f854bd9f344074f49eb
INSTALL_COMMAND
""
CMAKE_ARGS
"-DCMAKE_WARN_DEPRECATED=FALSE"
...
...
extra/wolfssl/CMakeLists.txt
View file @
a01abad6
...
...
@@ -157,6 +157,8 @@ IF(WOLFSSL_X86_64_BUILD)
${
WOLFCRYPT_SRCDIR
}
/sha512_asm.S
${
WOLFCRYPT_SRCDIR
}
/sha256_asm.S
)
ADD_DEFINITIONS
(
-maes -msse4.2 -mpclmul
)
# WolfSSL 5.5.4 bug - user_settings.h not included into aes_asm.S
SET_PROPERTY
(
SOURCE
${
WOLFCRYPT_SRCDIR
}
/aes_asm.S APPEND PROPERTY COMPILE_OPTIONS
"-DWOLFSSL_X86_64_BUILD"
)
ENDIF
()
ENDIF
()
...
...
wolfssl
@
4fbd4fd3
Subproject commit
f1e2165c591f074feb47872a8ff712713ec411e
1
Subproject commit
4fbd4fd36a21efd9d1a7e17aba390e91c78693b
1
mysql-test/main/func_json.result
View file @
a01abad6
...
...
@@ -1611,6 +1611,18 @@ SELECT json_object('a', coalesce(json_object('b', 'c')));
json_object('a', coalesce(json_object('b', 'c')))
{"a": {"b": "c"}}
#
# MDEV-26392: Crash with json_get_path_next and 10.5.12
#
CREATE TABLE arrNestTest (
id VARCHAR(80) AS (JSON_COMPACT(JSON_EXTRACT(doc, "$._id"))) UNIQUE KEY,
doc JSON,
CONSTRAINT id_not_null CHECK(id IS NOT NULL));
INSERT INTO test.arrNestTest (doc) VALUES ('{ "_id" : { "$oid" : "611c0a463b150154132f6636" }, "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : 1.0 } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }');
SELECT * FROM arrNestTest;
id doc
{"$oid":"611c0a463b150154132f6636"} { "_id" : { "$oid" : "611c0a463b150154132f6636" }, "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : 1.0 } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }
DROP TABLE arrNestTest;
#
# MDEV-26054 Server crashes in Item_func_json_arrayagg::get_str_from_field
#
CREATE TABLE t (a VARCHAR(8));
...
...
mysql-test/main/func_json.test
View file @
a01abad6
...
...
@@ -1054,6 +1054,18 @@ DROP TABLE t2;
SELECT
json_object
(
'a'
,
if
(
1
,
json_object
(
'b'
,
'c'
),
json_object
(
'e'
,
'f'
)));
SELECT
json_object
(
'a'
,
coalesce
(
json_object
(
'b'
,
'c'
)));
--
echo
#
--
echo
# MDEV-26392: Crash with json_get_path_next and 10.5.12
--
echo
#
CREATE
TABLE
arrNestTest
(
id
VARCHAR
(
80
)
AS
(
JSON_COMPACT
(
JSON_EXTRACT
(
doc
,
"$._id"
)))
UNIQUE
KEY
,
doc
JSON
,
CONSTRAINT
id_not_null
CHECK
(
id
IS
NOT
NULL
));
INSERT
INTO
test
.
arrNestTest
(
doc
)
VALUES
(
'{ "_id" : { "$oid" : "611c0a463b150154132f6636" }, "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : [ { "a" : 1.0 } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] }'
);
SELECT
*
FROM
arrNestTest
;
DROP
TABLE
arrNestTest
;
--
echo
#
--
echo
# MDEV-26054 Server crashes in Item_func_json_arrayagg::get_str_from_field
...
...
sql/item_jsonfunc.cc
View file @
a01abad6
...
...
@@ -1004,7 +1004,7 @@ String *Item_func_json_extract::read_json(String *str,
if
(
!
possible_multiple_values
)
{
/* Loop to the end of the JSON just to make sure it's valid. */
while
(
json_
get_path_next
(
&
je
,
&
p
)
==
0
)
{}
while
(
json_
scan_next
(
&
je
)
==
0
)
{}
break
;
}
}
...
...
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