Fixed RESQL test cases for EPAS-14
parent
2121adb7fb
commit
e327066523
|
@ -0,0 +1,21 @@
|
|||
-- Package: public.pkg_emp_$%{}[]()&*^!@"'`\/#
|
||||
|
||||
-- DROP PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
CREATE OR REPLACE PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer;
|
||||
PROCEDURE proc1(IN v1 integer);
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
CREATE OR REPLACE PACKAGE BODY public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer IS BEGIN RETURN V1+10; END FUNC1;
|
||||
PROCEDURE proc1(IN v1 integer) IS BEGIN DBMS_OUTPUT.put_line(v1+50); END;
|
||||
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
GRANT EXECUTE ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#" TO PUBLIC;
|
||||
|
||||
COMMENT ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS 'test comment updated';
|
|
@ -0,0 +1,4 @@
|
|||
REVOKE ALL ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#" FROM enterprisedb;
|
||||
|
||||
COMMENT ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS 'test comment updated';
|
|
@ -0,0 +1,23 @@
|
|||
-- Package: public.pkg_emp_$%{}[]()&*^!@"'`\/#
|
||||
|
||||
-- DROP PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
CREATE OR REPLACE PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer;
|
||||
PROCEDURE proc1(IN v1 integer);
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
CREATE OR REPLACE PACKAGE BODY public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer IS BEGIN RETURN V1+10; END FUNC1;
|
||||
PROCEDURE proc1(IN v1 integer) IS BEGIN DBMS_OUTPUT.put_line(v1+50); END;
|
||||
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
GRANT EXECUTE ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#" TO PUBLIC;
|
||||
|
||||
GRANT EXECUTE ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#" TO enterprisedb WITH GRANT OPTION;
|
||||
|
||||
COMMENT ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS 'test comment';
|
|
@ -0,0 +1,17 @@
|
|||
CREATE OR REPLACE PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer;
|
||||
PROCEDURE proc1(v1 integer);
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
CREATE OR REPLACE PACKAGE BODY public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS
|
||||
FUNCTION func1(v1 integer) RETURN integer IS BEGIN RETURN V1+10; END FUNC1;
|
||||
PROCEDURE proc1(v1 integer) IS BEGIN DBMS_OUTPUT.put_line(v1+50); END;
|
||||
|
||||
END "pkg_emp_$%{}[]()&*^!@""'`\/#";
|
||||
|
||||
GRANT EXECUTE ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#" TO enterprisedb WITH GRANT OPTION;
|
||||
|
||||
COMMENT ON PACKAGE public."pkg_emp_$%{}[]()&*^!@""'`\/#"
|
||||
IS 'test comment';
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"scenarios": [
|
||||
{
|
||||
"type": "create",
|
||||
"name": "Create Packages",
|
||||
"endpoint": "NODE-package.obj",
|
||||
"sql_endpoint": "NODE-package.sql_id",
|
||||
"msql_endpoint": "NODE-package.msql",
|
||||
"data":
|
||||
{
|
||||
"name": "pkg_emp_$%{}[]()&*^!@\"'`\\/#",
|
||||
"owner": "enterprisedb",
|
||||
"description": "test comment",
|
||||
"pkgheadsrc": "FUNCTION func1(v1 integer) RETURN integer;\nPROCEDURE proc1(v1 integer);",
|
||||
"pkgbodysrc": "FUNCTION func1(v1 integer) RETURN integer IS BEGIN RETURN V1+10; END FUNC1;\nPROCEDURE proc1(v1 integer) IS BEGIN DBMS_OUTPUT.put_line(v1+50); END;",
|
||||
"pkgacl": [{
|
||||
"grantee": "enterprisedb",
|
||||
"grantor": "enterprisedb",
|
||||
"privileges": [{
|
||||
"privilege_type": "X",
|
||||
"privilege": true,
|
||||
"with_grant": true
|
||||
}]
|
||||
}],
|
||||
"schema": "public"
|
||||
},
|
||||
"expected_sql_file": "create_package_with_all_options.sql",
|
||||
"expected_msql_file": "create_package_with_all_options_msql.sql"
|
||||
},
|
||||
{
|
||||
"type": "alter",
|
||||
"name": "Alter Packages",
|
||||
"endpoint": "NODE-package.obj_id",
|
||||
"sql_endpoint": "NODE-package.sql_id",
|
||||
"msql_endpoint": "NODE-package.msql_id",
|
||||
"data":
|
||||
{
|
||||
"description": "test comment updated",
|
||||
"owner": "enterprisedb",
|
||||
"pkgacl": {
|
||||
"deleted": [{
|
||||
"grantee": "enterprisedb",
|
||||
"grantor": "enterprisedb",
|
||||
"privileges": [{
|
||||
"privilege_type": "X",
|
||||
"privilege": true,
|
||||
"with_grant": true
|
||||
}]
|
||||
}]
|
||||
},
|
||||
"schema": "public"
|
||||
},
|
||||
"expected_sql_file": "alter_package_headers_and_comment.sql",
|
||||
"expected_msql_file": "alter_package_headers_and_comment_msql.sql"
|
||||
},
|
||||
{
|
||||
"type": "delete",
|
||||
"name": "Drop Package",
|
||||
"endpoint": "NODE-package.delete_id",
|
||||
"data": {
|
||||
"name": "pkg_emp_$%{}[]()&*^!@\"'`\\/#"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue