mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
commit
b84a9dcf86
4 changed files with 30 additions and 22 deletions
0
Docs/README.1st
Executable file → Normal file
0
Docs/README.1st
Executable file → Normal file
|
@ -36,6 +36,12 @@
|
|||
#define REPL_SLAVE_ACL (1L << 19)
|
||||
#define REPL_CLIENT_ACL (1L << 20)
|
||||
|
||||
/*
|
||||
don't forget to update
|
||||
static struct show_privileges_st sys_privileges[]
|
||||
in sql_show.cc when adding new privileges!
|
||||
*/
|
||||
|
||||
|
||||
#define DB_ACLS \
|
||||
(UPDATE_ACL | SELECT_ACL | INSERT_ACL | DELETE_ACL | CREATE_ACL | DROP_ACL | \
|
||||
|
|
|
@ -219,30 +219,32 @@ struct show_privileges_st {
|
|||
const char *comment;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
TODO: Update with new privileges
|
||||
*/
|
||||
static struct show_privileges_st sys_privileges[]=
|
||||
{
|
||||
{"Select", "Tables", "To retrieve rows from table"},
|
||||
{"Insert", "Tables", "To insert data into tables"},
|
||||
{"Update", "Tables", "To update existing rows "},
|
||||
{"Delete", "Tables", "To delete existing rows"},
|
||||
{"Index", "Tables", "To create or drop indexes"},
|
||||
{"Alter", "Tables", "To alter the table"},
|
||||
{"Alter", "Tables", "To alter the table"},
|
||||
{"Create temporary tables","Databases","To use CREATE TEMPORARY TABLE"},
|
||||
{"Create", "Databases,Tables,Indexes", "To create new databases and tables"},
|
||||
{"Drop", "Databases,Tables", "To drop databases and tables"},
|
||||
{"Grant", "Databases,Tables", "To give to other users those privileges you possess"},
|
||||
{"References", "Databases,Tables", "To have references on tables"},
|
||||
{"Reload", "Server Admin", "To reload or refresh tables, logs and privileges"},
|
||||
{"Shutdown","Server Admin", "To shutdown the server"},
|
||||
{"Delete", "Tables", "To delete existing rows"},
|
||||
{"Drop", "Databases,Tables", "To drop databases and tables"},
|
||||
{"File", "File access on server", "To read and write files on the server"},
|
||||
{"Grant option", "Databases,Tables", "To give to other users those privileges you possess"},
|
||||
{"Index", "Tables", "To create or drop indexes"},
|
||||
{"Insert", "Tables", "To insert data into tables"},
|
||||
{"Lock tables","Databases","To use LOCK TABLES (together with SELECT privilege)"},
|
||||
{"Process", "Server Admin", "To view the plain text of currently executing queries"},
|
||||
{"File", "File access on server", "To read and write files on the server"},
|
||||
{"References", "Databases,Tables", "To have references on tables"},
|
||||
{"Reload", "Server Admin", "To reload or refresh tables, logs and privileges"},
|
||||
{"Replication client","Server Admin","To ask where the slave or master servers are"},
|
||||
{"Replication slave","Server Admin","To read binary log events from the master"},
|
||||
{"Select", "Tables", "To retrieve rows from table"},
|
||||
{"Show databases","Server Admin","To see all databases with SHOW DATABASES"},
|
||||
{"Shutdown","Server Admin", "To shutdown the server"},
|
||||
{"Super","Server Admin","To use KILL thread, SET GLOBAL, CHANGE MASTER, etc."},
|
||||
{"Update", "Tables", "To update existing rows"},
|
||||
{"Usage","Server Admin","No privileges - allow connect only"},
|
||||
{NullS, NullS, NullS}
|
||||
};
|
||||
|
||||
|
||||
int mysqld_show_privileges(THD *thd)
|
||||
{
|
||||
List<Item> field_list;
|
||||
|
@ -299,11 +301,11 @@ static struct show_column_type_st sys_column_types[]=
|
|||
{
|
||||
{"tinyint",
|
||||
1, "-128", "127", 0, 0, "YES", "YES",
|
||||
"NO", "YES", "YES", "NO", "NULL,0",
|
||||
"A very small integer"},
|
||||
"NO", "YES", "YES", "NO", "NULL,0",
|
||||
"A very small integer"},
|
||||
{"tinyint unsigned",
|
||||
1, "0" , "255", 0, 0, "YES", "YES",
|
||||
"YES", "YES", "YES", "NO", "NULL,0",
|
||||
1, "0" , "255", 0, 0, "YES", "YES",
|
||||
"YES", "YES", "YES", "NO", "NULL,0",
|
||||
"A very small integer"},
|
||||
};
|
||||
|
||||
|
|
|
@ -4958,7 +4958,7 @@ set:
|
|||
{
|
||||
LEX *lex=Lex;
|
||||
lex->sql_command= SQLCOM_SET_OPTION;
|
||||
lex->option_type=OPT_DEFAULT;
|
||||
lex->option_type=OPT_SESSION;
|
||||
lex->var_list.empty();
|
||||
}
|
||||
option_value_list
|
||||
|
|
Loading…
Reference in a new issue