Skip to content

Commit 977c385

Browse files
committed
Merge 10.4 into 10.5
2 parents fa0cada + 2aab7f2 commit 977c385

Some content is hidden

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

46 files changed

+2936
-364
lines changed

client/mysqlbinlog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ that may lead to an endless loop.",
17221722
&opt_binlog_rows_event_max_encoded_size, 0,
17231723
GET_ULONG, REQUIRED_ARG, UINT_MAX/4, 256, ULONG_MAX, 0, 256, 0},
17241724
#endif
1725-
{"verify-binlog-checksum", 'c', "Verify checksum binlog events.",
1725+
{"verify-binlog-checksum", 'c', "Verify binlog event checksums.",
17261726
(uchar**) &opt_verify_binlog_checksum, (uchar**) &opt_verify_binlog_checksum,
17271727
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
17281728
{"rewrite-db", OPT_REWRITE_DB,

config.h.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@
255255
#cmakedefine STRUCT_TIMESPEC_HAS_TV_SEC 1
256256
#cmakedefine STRUCT_TIMESPEC_HAS_TV_NSEC 1
257257

258-
#define USE_MB 1
259-
#define USE_MB_IDENT 1
260-
261258
/* this means that valgrind headers and macros are available */
262259
#cmakedefine HAVE_VALGRIND_MEMCHECK_H 1
263260

@@ -453,8 +450,8 @@
453450
#cmakedefine MYSQL_DEFAULT_CHARSET_NAME "@MYSQL_DEFAULT_CHARSET_NAME@"
454451
#cmakedefine MYSQL_DEFAULT_COLLATION_NAME "@MYSQL_DEFAULT_COLLATION_NAME@"
455452

456-
#cmakedefine USE_MB 1
457-
#cmakedefine USE_MB_IDENT 1
453+
#cmakedefine USE_MB
454+
#cmakedefine USE_MB_IDENT
458455

459456
/* This should mean case insensitive file system */
460457
#cmakedefine FN_NO_CASE_SENSE 1

mysql-test/main/grant3.result

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,29 @@ connection default;
195195
DROP USER 'user2'@'%';
196196
DROP DATABASE temp;
197197
set global sql_mode=default;
198-
End of 5.0 tests
198+
#
199+
# End of 5.0 tests
200+
#
201+
create database db1;
202+
create user foo@localhost;
203+
grant create on db1.* to foo@localhost;
204+
connect foo,localhost,foo;
205+
create temporary table t as values (1),(2),(3);
206+
use db1;
207+
create table t1 as select * from test.t;
208+
ERROR 42000: INSERT command denied to user 'foo'@'localhost' for table `db1`.`t1`
209+
create table t1 as values (1),(2),(3);
210+
ERROR 42000: INSERT command denied to user 'foo'@'localhost' for table `db1`.`t1`
211+
create table t1 (a int);
212+
disconnect foo;
213+
connection default;
214+
revoke create on db1.* from foo@localhost;
215+
grant insert on db1.* to foo@localhost;
216+
connect foo,localhost,foo;
217+
use db1;
218+
create table t2 as values (1),(2),(3);
219+
ERROR 42000: CREATE command denied to user 'foo'@'localhost' for table `db1`.`t2`
220+
disconnect foo;
221+
connection default;
222+
drop user foo@localhost;
223+
drop database db1;

mysql-test/main/grant3.test

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,35 @@ DROP USER 'user2'@'%';
207207
DROP DATABASE temp;
208208

209209
set global sql_mode=default;
210-
--echo End of 5.0 tests
210+
--echo #
211+
--echo # End of 5.0 tests
212+
--echo #
213+
214+
create database db1;
215+
create user foo@localhost;
216+
grant create on db1.* to foo@localhost;
217+
connect foo,localhost,foo;
218+
create temporary table t as values (1),(2),(3);
219+
use db1;
220+
--error ER_TABLEACCESS_DENIED_ERROR
221+
create table t1 as select * from test.t;
222+
--error ER_TABLEACCESS_DENIED_ERROR
223+
create table t1 as values (1),(2),(3);
224+
create table t1 (a int);
225+
disconnect foo;
226+
connection default;
227+
228+
revoke create on db1.* from foo@localhost;
229+
grant insert on db1.* to foo@localhost;
230+
connect foo,localhost,foo;
231+
use db1;
232+
--error ER_TABLEACCESS_DENIED_ERROR
233+
create table t2 as values (1),(2),(3);
234+
disconnect foo;
235+
236+
connection default;
237+
drop user foo@localhost;
238+
drop database db1;
211239

212240
# Wait till we reached the initial number of concurrent sessions
213241
--source include/wait_until_count_sessions.inc

0 commit comments

Comments
 (0)