• gkodinov/kgeorge@magare.gmz's avatar
    Bug #32858: Erro: "Incorrect usage of UNION and INTO" does not take · f6951f3e
    gkodinov/kgeorge@magare.gmz 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.
    f6951f3e
sql_yacc.yy 376 KB