The USER function specifies the current active user name for a request and is a synonym for the (CURRENT_USER) function. For definer's rights stored procedures, the returned user name is the definer's user name. For all other requests, it is the current user name of the calling routine or, if no calling routine, the current session user name. The resulting data type is CHAR(31).