Using SELECT to call a function in a jdbc migration
You can avoid this by using the DO command like so:

DO $$ 
BEGIN
    PERFORM AddGeometryColumn('parks', 'park_geom', 128, 'MULTIPOLYGON', 2 );
END;
$$


Note the BEGIN and END are necessary as it has to be a valid plpgsql block.