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
097b7b8c
Commit
097b7b8c
authored
Oct 04, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
86a2e2ba
1d578929
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
112 additions
and
30 deletions
+112
-30
mysql-test/main/sp.result
mysql-test/main/sp.result
+0
-3
mysql-test/main/sp.test
mysql-test/main/sp.test
+2
-1
mysql-test/suite/galera/r/galera_fulltext.result
mysql-test/suite/galera/r/galera_fulltext.result
+56
-0
mysql-test/suite/galera/t/galera_fulltext.test
mysql-test/suite/galera/t/galera_fulltext.test
+43
-21
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-1
sql/sql_yacc_ora.yy
sql/sql_yacc_ora.yy
+2
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+7
-3
No files found.
mysql-test/main/sp.result
View file @
097b7b8c
...
...
@@ -8892,9 +8892,6 @@ SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
VARIABLE_VALUE-@local_mem_used
0
SELECT VARIABLE_VALUE-@global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
VARIABLE_VALUE-@global_mem_used
0
DROP PROCEDURE sp1;
# End of 10.3 tests
#
...
...
mysql-test/main/sp.test
View file @
097b7b8c
...
...
@@ -10433,7 +10433,8 @@ SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATU
CREATE
PROCEDURE
sp1
()
SELECT
1
;
SHOW
CREATE
PROCEDURE
sp1
;
SELECT
VARIABLE_VALUE
-@
local_mem_used
FROM
INFORMATION_SCHEMA
.
SESSION_STATUS
WHERE
VARIABLE_NAME
=
'MEMORY_USED'
;
SELECT
VARIABLE_VALUE
-@
global_mem_used
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'MEMORY_USED'
;
# FIXME: MDEV-26754 main.sp test fails for embedded server
#SELECT VARIABLE_VALUE-@global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
DROP
PROCEDURE
sp1
;
--
echo
# End of 10.3 tests
...
...
mysql-test/suite/galera/r/galera_fulltext.result
View file @
097b7b8c
...
...
@@ -36,3 +36,59 @@ COUNT(f1) = 1000
1
DROP TABLE t1;
DROP TABLE ten;
connection node_1;
SET @value=REPEAT (1,5001);
CREATE TABLE t (a VARCHAR(5000),FULLTEXT (a)) engine=innodb;
INSERT IGNORE INTO t VALUES(@value);
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_2;
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_1;
DROP TABLE t;
CREATE TABLE t (a VARCHAR(5000)) engine=innodb;
INSERT IGNORE INTO t VALUES(@value);
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_2;
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_1;
DROP TABLE t;
connection node_1;
SET @value=REPEAT (1,5001);
CREATE TABLE t (a VARCHAR(5000),FULLTEXT (a)) engine=innodb DEFAULT CHARSET=utf8;
INSERT IGNORE INTO t VALUES(@value);
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_2;
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_1;
DROP TABLE t;
CREATE TABLE t (a VARCHAR(5000)) engine=innodb DEFAULT CHARSET=utf8;
INSERT IGNORE INTO t VALUES(@value);
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_2;
SELECT COUNT(*) FROM t;
COUNT(*)
1
connection node_1;
DROP TABLE t;
mysql-test/suite/galera/t/galera_fulltext.test
View file @
097b7b8c
...
...
@@ -58,28 +58,50 @@ SELECT COUNT(f1) = 1000 FROM t1 WHERE MATCH(f1) AGAINST ('abcdefjhk');
DROP
TABLE
t1
;
DROP
TABLE
ten
;
#
# Case 2: UTF-8
# TODO: MDEV-24978
#
#--connection node_1
#SET @value=REPEAT (1,5001);
#CREATE TABLE t (a VARCHAR(5000),FULLTEXT (a)) engine=innodb DEFAULT CHARSET=utf8;
#INSERT IGNORE INTO t VALUES(@value);
#SELECT COUNT(*) FROM t;
# MDEV-24978 : SIGABRT in __libc_message
#
#--connection node_2
#SELECT COUNT(*) FROM t;
#
#--connection node_1
#DROP TABLE t;
#CREATE TABLE t (a VARCHAR(5000)) engine=innodb DEFAULT CHARSET=utf8;
#INSERT IGNORE INTO t VALUES(@value);
#SELECT COUNT(*) FROM t;
--
connection
node_1
SET
@
value
=
REPEAT
(
1
,
5001
);
CREATE
TABLE
t
(
a
VARCHAR
(
5000
),
FULLTEXT
(
a
))
engine
=
innodb
;
INSERT
IGNORE
INTO
t
VALUES
(
@
value
);
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_2
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_1
DROP
TABLE
t
;
CREATE
TABLE
t
(
a
VARCHAR
(
5000
))
engine
=
innodb
;
INSERT
IGNORE
INTO
t
VALUES
(
@
value
);
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_2
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_1
DROP
TABLE
t
;
#
#--connection node_2
#SELECT COUNT(*) FROM t;
# Case 2: UTF-8
#
#--connection node_1
#DROP TABLE t;
--
connection
node_1
SET
@
value
=
REPEAT
(
1
,
5001
);
CREATE
TABLE
t
(
a
VARCHAR
(
5000
),
FULLTEXT
(
a
))
engine
=
innodb
DEFAULT
CHARSET
=
utf8
;
INSERT
IGNORE
INTO
t
VALUES
(
@
value
);
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_2
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_1
DROP
TABLE
t
;
CREATE
TABLE
t
(
a
VARCHAR
(
5000
))
engine
=
innodb
DEFAULT
CHARSET
=
utf8
;
INSERT
IGNORE
INTO
t
VALUES
(
@
value
);
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_2
SELECT
COUNT
(
*
)
FROM
t
;
--
connection
node_1
DROP
TABLE
t
;
sql/sql_yacc.yy
View file @
097b7b8c
...
...
@@ -73,7 +73,8 @@
/* this is to get the bison compilation windows warnings out */
#ifdef _MSC_VER
/* warning C4065: switch statement contains 'default' but no 'case' labels */
#pragma warning (disable : 4065)
/* warning C4102: 'yyexhaustedlab': unreferenced label */
#pragma warning (disable : 4065 4102)
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-label" /* yyexhaustedlab: */
...
...
sql/sql_yacc_ora.yy
View file @
097b7b8c
...
...
@@ -73,7 +73,8 @@
/* this is to get the bison compilation windows warnings out */
#ifdef _MSC_VER
/* warning C4065: switch statement contains 'default' but no 'case' labels */
#pragma warning (disable : 4065)
/* warning C4102: 'yyexhaustedlab': unreferenced label */
#pragma warning (disable : 4065 4102)
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-label" /* yyexhaustedlab: */
...
...
storage/innobase/handler/ha_innodb.cc
View file @
097b7b8c
...
...
@@ -7113,10 +7113,14 @@ wsrep_store_key_val_for_row(
/* In a column prefix index, we may need to truncate
the stored value: */
if
(
true_len
>
key_len
)
{
true_len
=
key_len
;
}
/* cannot exceed max column lenght either, we may need to truncate
the stored value: */
if
(
true_len
>
sizeof
(
sorted
))
{
true_len
=
sizeof
(
sorted
);
}
memcpy
(
sorted
,
data
,
true_len
);
true_len
=
wsrep_innobase_mysql_sort
(
...
...
@@ -7129,8 +7133,8 @@ wsrep_store_key_val_for_row(
actual data. The rest of the space was reset to zero
in the bzero() call above. */
if
(
true_len
>
buff_space
)
{
fprintf
(
stderr
,
"
WSREP: key truncated
: %s
\n
"
,
WSREP_DEBUG
(
"
write set key truncated for
: %s
\n
"
,
wsrep_thd_query
(
thd
));
true_len
=
buff_space
;
}
...
...
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