
BEGIN;

SELECT plan(1);

create or REPLACE FUNCTION test_function()
RETURNS SETOF TEXT AS
$BODY$
BEGIN
  IF NOT min_version('3.2.0') THEN
    RETURN QUERY
    SELECT skip(1, 'Signature is new on 3.2.0');
    RETURN;
  END IF;


  RETURN query SELECT is_empty(
    'SELECT path_seq,  start_pid,  end_pid, node, edge, cost, agg_cost FROM pgr_withPoints(
      ''SELECT id, source, target, cost, reverse_cost FROM edge_table'',
      ''SELECT pid, edge_id, fraction, side from pointsOfInterest'',
      ''SELECT * FROM combinations_table WHERE source IN (-1)'' ) '
  );
  RETURN;
END
$BODY$
language plpgsql;

select * from test_function();

-- Finish the tests and clean up.
SELECT * FROM finish();
ROLLBACK;
