MDEV-5317 out parameters in PREPARE "SELECT ... INTO"

originally based on the patch by Antony T Curtis
MDEV-5317 Compound statement / anonymous blocks

originally based on the patch by Antony T Curtis