risingwave_frontend::handler::alter_swap_rename

Function check_swap_rename_privilege

source
fn check_swap_rename_privilege(
    session_impl: &Arc<SessionImpl>,
    src_owner: u32,
    target_owner: u32,
) -> Result<(), RwError>
Expand description

Check if the session user has the privilege to swap and rename the objects.