goose/internal/sqlparser/testdata/valid-up/test06/04.up.golden.sql

15 lines
330 B
PL/PgSQL

CREATE FUNCTION do_something(sql TEXT) RETURNS INTEGER AS $$
BEGIN
-- initiate technology
PERFORM something_or_other(sql);
-- increase technology
PERFORM some_other_thing(sql);
-- technology was successful
RETURN 1;
END;
$$ LANGUAGE plpgsql;
-- 3 this comment WILL BE preserved
-- 4 this comment WILL BE preserved