• mhansson/martin@linux-st28.site's avatar
    Bug #32858: Erro: "Incorrect usage of UNION and INTO" does not take · 33c4431d
    mhansson/martin@linux-st28.site authored
    subselects into account
    
    It is forbidden to use the SELECT INTO construction inside UNION statements
    unless on the last SELECT of the union. The parser records whether it 
    has seen INTO or not when parsing a UNION statement. But if the INTO was
    legally used in an outer query, an error is thrown if UNION is seen in a
    subquery. Fixed in 5.0 by remembering the nesting level of INTO tokens and 
    mitigate the error unless it collides with the UNION.
    33c4431d
union.result 41.5 KB