MDEV-5317 Compound statement / anonymous blocks

originally based on the patch by Antony T Curtis