-554   AN AUTHORIZATION ID OR ROLE CANNOT GRANT A PRIVILEGE TO ITSELF

Explanation

An authorization ID or a role attempted to execute a GRANT statement in which that ID itself appears as one of the entries in the list of 'grantee' authorization IDs or role names.

An authorization ID or a role cannot GRANT a privilege to itself. However, if SQLRULES(STD) is in effect or CURRENT RULES contains STD, GRANT to self is allowed.

System action

The statement cannot be processed. No privileges were granted.

Programmer response

Remove the reference to the authorization ID that issued the GRANT statement from the list of grantee authorization IDs.

SQLSTATE

42502