gustafn
committed
on 06 Jul 16
- change language of function from plpgsql to sql to avoid mismatch