
With this change, a parenthesized top-level SELECT, such as "(SELECT f FROM t)" will be fully parsed. Before this change, the statement was classified as invalid and would thus have been sent to the master. With this change also statements like (SELECT f FROM t1) UNION (SELECT f FROM t2) will be correctly classified, although only partially parsed.