SET BAIL ON;

EXECUTE PROCEDURE sp_patch_from(2); COMMIT;

CREATE TABLE test2 (
    foo INTEGER,
    bar INTEGER,
    baz SMALLINT
);
INSERT INTO test2 VALUES (1, 2, 3);
INSERT INTO test2 VALUES (4, 6, 9);
COMMIT;

EXECUTE PROCEDURE sp_patch_to(3, 'test2 table'); COMMIT;
