• unknown's avatar
    In prepare_view_securety_context() the sql_command came in wrong. · 5d428217
    unknown authored
    If the first part was SHOW and second part SELECT, it would have
    thought that the command was SELECT, although the first part of
    it was SHOW. It would then fail later.
    
    Thus we need to set thd->lex to old_lex (first part) here before going
    in to prepare_security().
    
    5d428217
sql_view.cc 48.6 KB