• evgen@moonbone.local's avatar
    Fixed bug#19789: REPLACE was allowed for a VIEW with CHECK OPTION enabled. · 97436287
    evgen@moonbone.local authored
    The st_lex::which_check_option_applicable() function controls for which 
    statements WITH CHECK OPTION clause should be taken into account. REPLACE and
    REPLACE_SELECT wasn't in the list which results in allowing REPLACE to insert
    wrong rows in a such view.
    
    The st_lex::which_check_option_applicable() now includes REPLACE and 
    REPLACE_SELECT in the list of statements for which WITH CHECK OPTION clause is
    applicable.
    97436287
sql_lex.h 35.6 KB