Skip to content

Commit 0025eb3

Browse files
committed
Merge mariadb-10.3.24
2 parents c19335e + 4668e07 commit 0025eb3

File tree

154 files changed

+1886
-917
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+1886
-917
lines changed

cmake/os/WindowsCache.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ SET(HAVE_BACKTRACE_SYMBOLS CACHE INTERNAL "")
3131
SET(HAVE_BACKTRACE_SYMBOLS_FD CACHE INTERNAL "")
3232
SET(HAVE_BFILL CACHE INTERNAL "")
3333
SET(HAVE_BSD_SIGNALS CACHE INTERNAL "")
34-
SET(HAVE_BSS_START CACHE INTERNAL "")
3534
SET(HAVE_CLOCK_GETTIME CACHE INTERNAL "")
3635
SET(HAVE_COMPRESS CACHE INTERNAL "")
3736
SET(HAVE_CRYPT CACHE INTERNAL "")

config.h.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@
243243
/* Symbols we may use */
244244
#cmakedefine HAVE_SYS_ERRLIST 1
245245
/* used by stacktrace functions */
246-
#cmakedefine HAVE_BSS_START 1
247246
#cmakedefine HAVE_BACKTRACE 1
248247
#cmakedefine HAVE_BACKTRACE_SYMBOLS 1
249248
#cmakedefine HAVE_BACKTRACE_SYMBOLS_FD 1

configure.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -802,14 +802,6 @@ CHECK_CXX_SOURCE_COMPILES("
802802
HAVE_ABI_CXA_DEMANGLE)
803803
ENDIF()
804804

805-
CHECK_C_SOURCE_COMPILES("
806-
int main(int argc, char **argv)
807-
{
808-
extern char *__bss_start;
809-
return __bss_start ? 1 : 0;
810-
}"
811-
HAVE_BSS_START)
812-
813805
CHECK_C_SOURCE_COMPILES("
814806
int main()
815807
{

libmariadb

man/mysql_upgrade.1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'\" t
22
.\"
3-
.TH "\FBMYSQL_UPGRADE\FR" "1" "9 May 2017" "MariaDB 10\&.3" "MariaDB Database System"
3+
.TH "\FBMYSQL_UPGRADE\FR" "1" "20 July 2020" "MariaDB 10\&.3" "MariaDB Database System"
44
.\" -----------------------------------------------------------------
55
.\" * set default formatting
66
.\" -----------------------------------------------------------------
@@ -165,6 +165,8 @@ in the data directory\&. This is used to quickly check whether all tables have b
165165
\fB\-\-force\fR
166166
option\&.
167167
.PP
168+
For this reason, \fBmysql_upgrade\fR needs to be run as a user with write access to the data directory\&.
169+
.PP
168170
If you install MariaDB from RPM packages on Linux, you must install the server and client RPMs\&.
169171
\fBmysql_upgrade\fR
170172
is included in the server RPM but requires the client RPM because the latter includes

mysql-test/main/func_group.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,13 +1186,13 @@ i count(*) std(e1/e2)
11861186
3 4 0.00000000
11871187
select std(s1/s2) from bug22555;
11881188
std(s1/s2)
1189-
0.21325764
1189+
0.21328517
11901190
select std(o1/o2) from bug22555;
11911191
std(o1/o2)
11921192
0.2132576358664934
11931193
select std(e1/e2) from bug22555;
11941194
std(e1/e2)
1195-
0.21325764
1195+
0.21328517
11961196
set @saved_div_precision_increment=@@div_precision_increment;
11971197
set div_precision_increment=19;
11981198
select i, count(*), std(s1/s2) from bug22555 group by i order by i;

mysql-test/main/grant5.result

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ ERROR HY000: Table 'user' was not locked with LOCK TABLES
2525
REVOKE PROCESS ON *.* FROM u;
2626
ERROR HY000: Table 'user' was not locked with LOCK TABLES
2727
DROP TABLE t1;
28+
create database mysqltest1;
29+
use mysqltest1;
30+
create table t1(id int);
31+
insert t1 values(2);
32+
create user u1@localhost;
33+
grant select on mysqltest1.t1 to u1@localhost;
34+
grant update on mysqltest1.* to u1@localhost;
35+
connect u1, localhost, u1;
36+
update mysqltest1.t1 set id=1 where id=2;
37+
connection default;
38+
disconnect u1;
39+
drop user u1@localhost;
40+
drop database mysqltest1;
2841
#
2942
# MDEV-20076: SHOW GRANTS does not quote role names properly
3043
#

mysql-test/main/grant5.test

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,27 @@ REVOKE EXECUTE ON PROCEDURE sp FROM u;
3434
REVOKE PROCESS ON *.* FROM u;
3535
DROP TABLE t1;
3636

37+
#
38+
# MDEV-23010 UPDATE privilege at Database and Table level fail to update with SELECT command denied to user
39+
#
40+
create database mysqltest1;
41+
use mysqltest1;
42+
create table t1(id int);
43+
insert t1 values(2);
44+
create user u1@localhost;
45+
grant select on mysqltest1.t1 to u1@localhost;
46+
grant update on mysqltest1.* to u1@localhost;
47+
connect u1, localhost, u1;
48+
update mysqltest1.t1 set id=1 where id=2;
49+
connection default;
50+
disconnect u1;
51+
drop user u1@localhost;
52+
drop database mysqltest1;
53+
54+
#
55+
# End of 10.1 tests
56+
#
57+
3758
--echo #
3859
--echo # MDEV-20076: SHOW GRANTS does not quote role names properly
3960
--echo #

mysql-test/main/parser_precedence.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ select 4 - 3 * 2, (4 - 3) * 2, 4 - (3 * 2);
619619
Testing that / is left associative
620620
select 15 / 5 / 3, (15 / 5) / 3, 15 / (5 / 3);
621621
15 / 5 / 3 (15 / 5) / 3 15 / (5 / 3)
622-
1.00000000 1.00000000 9.0000
622+
1.00000000 1.00000000 8.9998
623623
Testing that / has precedence over |
624624
select 105 / 5 | 2, (105 / 5) | 2, 105 / (5 | 2);
625625
105 / 5 | 2 (105 / 5) | 2 105 / (5 | 2)

mysql-test/main/partition.result

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,5 +2759,45 @@ SELECT 1 FROM t1 WHERE a XOR 'a';
27592759
1
27602760
DROP TABLE t1;
27612761
#
2762+
# Bug #25207522: INCORRECT ORDER-BY BEHAVIOR ON A PARTITIONED TABLE
2763+
# WITH A COMPOSITE PREFIX INDEX
2764+
#
2765+
create table t1(id int unsigned not null,
2766+
data varchar(2) default null,
2767+
key data_idx (data(1),id)
2768+
) default charset=utf8
2769+
partition by range (id) (
2770+
partition p10 values less than (10),
2771+
partition p20 values less than (20)
2772+
);
2773+
insert t1 values (6, 'ab'), (4, 'ab'), (5, 'ab'), (16, 'ab'), (14, 'ab'), (15, 'ab'), (5, 'ac'), (15, 'aa') ;
2774+
select id from t1 where data = 'ab' order by id;
2775+
id
2776+
4
2777+
5
2778+
6
2779+
14
2780+
15
2781+
16
2782+
drop table t1;
2783+
create table t1(id int unsigned not null,
2784+
data text default null,
2785+
key data_idx (data(1),id)
2786+
) default charset=utf8
2787+
partition by range (id) (
2788+
partition p10 values less than (10),
2789+
partition p20 values less than (20)
2790+
);
2791+
insert t1 values (6, 'ab'), (4, 'ab'), (5, 'ab'), (16, 'ab'), (14, 'ab'), (15, 'ab'), (5, 'ac'), (15, 'aa') ;
2792+
select id from t1 where data = 'ab' order by id;
2793+
id
2794+
4
2795+
5
2796+
6
2797+
14
2798+
15
2799+
16
2800+
drop table t1;
2801+
#
27622802
# End of 10.1 tests
27632803
#

0 commit comments

Comments
 (0)