mirror of
https://github.com/MariaDB/server.git
synced 2025-04-08 00:05:34 +02:00

when a definer for SP/view is wrong - it shold be ER_MALFORMED_DEFINER, not ER_NO_SUCH_USER when one uses current_role as a definer or grantee but there's no current role - it should be ER_INVALID_ROLE not ER_MALFORMED_DEFINER when a non-existent user is specified - it should be ER_NO_SUCH_USER, which should say "The user does not exist", not "Definer does not exist" clarify ER_CANT_CHANGE_TX_CHARACTERISTICS to say what cannot be changed
13 lines
788 B
Text
13 lines
788 B
Text
create database mysqltest1;
|
|
use mysqltest1;
|
|
create table t1(id int primary key);
|
|
create definer=unknownuser@'%' sql security definer view v1 as select t1.id from t1 group by t1.id;
|
|
Warnings:
|
|
Note 1446 The user specified as a definer ('unknownuser'@'%') does not exist
|
|
show table status;
|
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
|
|
t1 MyISAM 10 Fixed 0 0 0 # 1024 0 NULL # # NULL utf8mb4_uca1400_ai_ci NULL # N
|
|
v1 NULL NULL NULL NULL NULL NULL # NULL NULL NULL # # NULL NULL NULL NULL VIEW # NULL
|
|
Warnings:
|
|
Note 1446 The user specified as a definer ('unknownuser'@'%') does not exist
|
|
drop database mysqltest1;
|