@@ -247,20 +247,20 @@ GRANT select (a), update (a),insert(a), references(a) on t1 to mysqltest_1@local
247247show grants for mysqltest_1@localhost;
248248Grants for mysqltest_1@localhost
249249GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
250- GRANT SELECT, SELECT (a ), INSERT, INSERT (a ), UPDATE, UPDATE (a ), REFERENCES (a ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
250+ GRANT SELECT, SELECT (`a` ), INSERT, INSERT (`a` ), UPDATE, UPDATE (`a` ), REFERENCES (`a` ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
251251select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
252252table_priv column_priv
253253Select,Insert,Update Select,Insert,Update,References
254254REVOKE select (a), update on t1 from mysqltest_1@localhost;
255255show grants for mysqltest_1@localhost;
256256Grants for mysqltest_1@localhost
257257GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
258- GRANT SELECT, INSERT, INSERT (a ), REFERENCES (a ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
258+ GRANT SELECT, INSERT, INSERT (`a` ), REFERENCES (`a` ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
259259REVOKE select,update,insert,insert (a) on t1 from mysqltest_1@localhost;
260260show grants for mysqltest_1@localhost;
261261Grants for mysqltest_1@localhost
262262GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
263- GRANT REFERENCES (a ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
263+ GRANT REFERENCES (`a` ) ON `test`.`t1` TO `mysqltest_1`@`localhost`
264264GRANT select,references on t1 to mysqltest_1@localhost;
265265select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
266266table_priv column_priv
@@ -340,13 +340,13 @@ show grants for drop_user@localhost;
340340Grants for drop_user@localhost
341341GRANT ALL PRIVILEGES ON *.* TO `drop_user`@`localhost` WITH GRANT OPTION
342342GRANT ALL PRIVILEGES ON `test`.* TO `drop_user`@`localhost` WITH GRANT OPTION
343- GRANT SELECT (a ) ON `test`.`t1` TO `drop_user`@`localhost`
343+ GRANT SELECT (`a` ) ON `test`.`t1` TO `drop_user`@`localhost`
344344set sql_mode=ansi_quotes;
345345show grants for drop_user@localhost;
346346Grants for drop_user@localhost
347347GRANT ALL PRIVILEGES ON *.* TO "drop_user"@"localhost" WITH GRANT OPTION
348348GRANT ALL PRIVILEGES ON "test".* TO "drop_user"@"localhost" WITH GRANT OPTION
349- GRANT SELECT (a ) ON "test"."t1" TO "drop_user"@"localhost"
349+ GRANT SELECT ("a" ) ON "test"."t1" TO "drop_user"@"localhost"
350350set sql_mode=default;
351351set sql_quote_show_create=0;
352352show grants for drop_user@localhost;
@@ -365,13 +365,13 @@ show grants for drop_user@localhost;
365365Grants for drop_user@localhost
366366GRANT ALL PRIVILEGES ON *.* TO "drop_user"@"localhost" WITH GRANT OPTION
367367GRANT ALL PRIVILEGES ON "test".* TO "drop_user"@"localhost" WITH GRANT OPTION
368- GRANT SELECT (a ) ON "test"."t1" TO "drop_user"@"localhost"
368+ GRANT SELECT ("a" ) ON "test"."t1" TO "drop_user"@"localhost"
369369set sql_mode="";
370370show grants for drop_user@localhost;
371371Grants for drop_user@localhost
372372GRANT ALL PRIVILEGES ON *.* TO `drop_user`@`localhost` WITH GRANT OPTION
373373GRANT ALL PRIVILEGES ON `test`.* TO `drop_user`@`localhost` WITH GRANT OPTION
374- GRANT SELECT (a ) ON `test`.`t1` TO `drop_user`@`localhost`
374+ GRANT SELECT (`a` ) ON `test`.`t1` TO `drop_user`@`localhost`
375375revoke all privileges, grant option from drop_user@localhost;
376376show grants for drop_user@localhost;
377377Grants for drop_user@localhost
@@ -419,7 +419,7 @@ GRANT SELECT (
419419SHOW GRANTS FOR ����@localhost;
420420Grants for ����@localhost
421421GRANT USAGE ON *.* TO `����`@`localhost`
422- GRANT SELECT (���) ON `��`.`���` TO `����`@`localhost`
422+ GRANT SELECT (` ���` ) ON `��`.`���` TO `����`@`localhost`
423423REVOKE SELECT (���) ON ��.��� FROM ����@localhost;
424424DROP USER ����@localhost;
425425DROP DATABASE ��;
@@ -496,7 +496,7 @@ grant insert(b), insert(c), insert(d), insert(a) on t1 to grant_user@localhost;
496496show grants for grant_user@localhost;
497497Grants for grant_user@localhost
498498GRANT USAGE ON *.* TO `grant_user`@`localhost`
499- GRANT INSERT (a, d, c, b ) ON `test`.`t1` TO `grant_user`@`localhost`
499+ GRANT INSERT (`a`, `d`, `c`, `b` ) ON `test`.`t1` TO `grant_user`@`localhost`
500500select Host,Db,User,Table_name,Column_name,Column_priv from mysql.columns_priv order by Column_name;
501501Host Db User Table_name Column_name Column_priv
502502localhost test grant_user t1 a Insert
@@ -911,20 +911,20 @@ grant update (a) on t1 to mysqltest_8;
911911show grants for mysqltest_8@'';
912912Grants for mysqltest_8@%
913913GRANT USAGE ON *.* TO `mysqltest_8`@`%`
914- GRANT UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
914+ GRANT UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
915915show grants for mysqltest_8;
916916Grants for mysqltest_8@%
917917GRANT USAGE ON *.* TO `mysqltest_8`@`%`
918- GRANT UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
918+ GRANT UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
919919flush privileges;
920920show grants for mysqltest_8@'';
921921Grants for mysqltest_8@%
922922GRANT USAGE ON *.* TO `mysqltest_8`@`%`
923- GRANT UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
923+ GRANT UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
924924show grants for mysqltest_8;
925925Grants for mysqltest_8@%
926926GRANT USAGE ON *.* TO `mysqltest_8`@`%`
927- GRANT UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
927+ GRANT UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
928928select * from information_schema.column_privileges;
929929GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
930930'mysqltest_8'@'%' def test t1 a UPDATE NO
@@ -1003,12 +1003,12 @@ show grants for mysqltest_8@'';
10031003Grants for mysqltest_8@%
10041004GRANT USAGE ON *.* TO `mysqltest_8`@`%`
10051005GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
1006- GRANT UPDATE, UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
1006+ GRANT UPDATE, UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
10071007show grants for mysqltest_8;
10081008Grants for mysqltest_8@%
10091009GRANT USAGE ON *.* TO `mysqltest_8`@`%`
10101010GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
1011- GRANT UPDATE, UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
1011+ GRANT UPDATE, UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
10121012select * from information_schema.user_privileges
10131013where grantee like "'mysqltest_8'%";
10141014GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
@@ -1024,12 +1024,12 @@ show grants for mysqltest_8@'';
10241024Grants for mysqltest_8@%
10251025GRANT USAGE ON *.* TO `mysqltest_8`@`%`
10261026GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
1027- GRANT UPDATE, UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
1027+ GRANT UPDATE, UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
10281028show grants for mysqltest_8;
10291029Grants for mysqltest_8@%
10301030GRANT USAGE ON *.* TO `mysqltest_8`@`%`
10311031GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
1032- GRANT UPDATE, UPDATE (a ) ON `test`.`t1` TO `mysqltest_8`@`%`
1032+ GRANT UPDATE, UPDATE (`a` ) ON `test`.`t1` TO `mysqltest_8`@`%`
10331033drop user mysqltest_8@'';
10341034show grants for mysqltest_8@'';
10351035ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host '%'
0 commit comments