FC-2588 var scoping in H2 DB gateway