From 1777fd5f556a9c68cae01ad2aadaf4865984e649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Otto=20Kek=C3=A4l=C3=A4inen?= Date: Fri, 4 Mar 2016 02:09:37 +0200 Subject: Fix spelling: occurred, execute, which etc --- sql/sql_prepare.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_prepare.cc') diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index ec7cdc4852b..5fe30f21b32 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -1820,7 +1820,7 @@ static bool mysql_test_create_table(Prepared_statement *stmt) @note This function handles create view commands. @retval FALSE Operation was a success. - @retval TRUE An error occured. + @retval TRUE An error occurred. */ static bool mysql_test_create_view(Prepared_statement *stmt) -- cgit v1.2.1 From c4bef7ad3c1528e902e88aa8b2446f29ffc1b0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Mon, 21 Mar 2016 22:14:49 +0200 Subject: MDEV-9443: Roles aren't supported in prepared statements Make role statements work with the PREPARE keyword. --- sql/sql_prepare.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/sql_prepare.cc') diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 492c20206a0..104046395c4 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -2458,9 +2458,12 @@ static bool check_prepared_statement(Prepared_statement *stmt) case SQLCOM_CREATE_USER: case SQLCOM_RENAME_USER: case SQLCOM_DROP_USER: + case SQLCOM_CREATE_ROLE: + case SQLCOM_DROP_ROLE: case SQLCOM_ASSIGN_TO_KEYCACHE: case SQLCOM_PRELOAD_KEYS: case SQLCOM_GRANT: + case SQLCOM_GRANT_ROLE: case SQLCOM_REVOKE: case SQLCOM_KILL: case SQLCOM_COMPOUND: -- cgit v1.2.1 From 287f2d2947c15d1e7ff35ba123b37291147e1c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= Date: Tue, 22 Mar 2016 13:45:51 +0200 Subject: MDEV-9443: Add REVOKE as a command to PREPARE --- sql/sql_prepare.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_prepare.cc') diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 104046395c4..0db1daa378e 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -2465,6 +2465,7 @@ static bool check_prepared_statement(Prepared_statement *stmt) case SQLCOM_GRANT: case SQLCOM_GRANT_ROLE: case SQLCOM_REVOKE: + case SQLCOM_REVOKE_ROLE: case SQLCOM_KILL: case SQLCOM_COMPOUND: case SQLCOM_SHUTDOWN: -- cgit v1.2.1