• Nirbhay Choubey's avatar
    MDEV-7996 : CURRENT_USER definer does not replicate for triggers · 00956977
    Nirbhay Choubey authored
    THD's lex->definer initially holds "*current_user" for CURRENT_USER().
    As a result when wsrep tries to create the trigger query, it incorrectly
    uses "*current_user". Fixed by calling get_current_user() to get the
    real current user.
    
    Merged galera_create_trigger.test from github.com/codership/mysql-wsrep.
    00956977
sql_trigger.cc 76.9 KB