• konstantin@mysql.com's avatar
    A fix for Bug#11901 "mysql_stmt_attr_set CURSOR_TYPE_READ_ONLY join in · f6306a8d
    konstantin@mysql.com authored
    subqry order by server crash": failing DBUG_ASSERT(curr_join == this)
    when opening a cursor.
    Ensure that for top-level join curr_join == join (always), 
    and thus fix the failing assert.
    curr_join is a hack to ensure that uncacheable subqueries can be
    re-evaluated safely, and should be never different from main join
    in case of top-level join.
    f6306a8d
mysql_client_test.c 382 KB