bugs.core_3306_test. Invariant sub-query is treated as variant thus causing multiple invocations of a nested stored procedure