Changeset: 67b61d811c00 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=67b61d811c00
Modified Files:
        sql/server/sql_privileges.c
Branch: Jan2014
Log Message:

Fixed error message.


diffs (19 lines):

diff --git a/sql/server/sql_privileges.c b/sql/server/sql_privileges.c
--- a/sql/server/sql_privileges.c
+++ b/sql/server/sql_privileges.c
@@ -250,13 +250,13 @@ sql_grant_role(mvc *m, str grantee, str 
 
        rid = table_funcs.column_find_row(m->session->tr, auths_name, grantee, 
NULL);
        if (rid == oid_nil)
-               return sql_message("M1M05!GRANT: cannot grant ROLE '%s' to ROLE 
'%s'", grantee, auth );
+               return sql_message("M1M05!GRANT: cannot grant ROLE '%s' to ROLE 
'%s'", auth, grantee);
        grantee_id = table_funcs.column_find_value(m->session->tr, auths_id, 
rid);
 
        rid = table_funcs.column_find_row(m->session->tr, auths_name, auth, 
NULL);
        if (rid == oid_nil) {
                _DELETE(grantee_id);
-               return sql_message("M1M05!GRANT: cannot grant ROLE '%s' to ROLE 
'%s'", grantee, auth );
+               return sql_message("M1M05!GRANT: cannot grant ROLE '%s' to ROLE 
'%s'", auth, grantee);
        }
        auth_id = table_funcs.column_find_value(m->session->tr, auths_id, rid);
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to