• guilhem@mysql.com's avatar
    Fix for BUG#4544 "read_only also affects temporary tables": · b386fef1
    guilhem@mysql.com authored
    the READ_ONLY global variable now allows statements which are to update only temporary tables
    (note: if a statement, after parse stage, looks like it will update a non-temp table, it will be rejected,
    even if at execution it would have turned out that 0 rows would be updated; for example
    UPDATE my_non_tem_table SET a=1 WHERE 1 = 0; will be rejected).
    b386fef1
read_only.test 1.97 KB