mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-4462 mysqld gets SIGFPE when mysql.user table is empty
avoid divison by zero
This commit is contained in:
parent
61ed0ebe73
commit
4a0f2563d3
3 changed files with 32 additions and 0 deletions
8
mysql-test/r/empty_user_table.result
Normal file
8
mysql-test/r/empty_user_table.result
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
create table t1 as select * from mysql.user;
|
||||
truncate table mysql.user;
|
||||
flush privileges;
|
||||
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
|
||||
ERROR 28000: Access denied for user 'u1'@'localhost' (using password: NO)
|
||||
insert mysql.user select * from t1;
|
||||
drop table t1;
|
||||
flush privileges;
|
||||
Loading…
Add table
Add a link
Reference in a new issue