Use special characters in names for RE-SQL tests to exercise quoting.

pull/25/head
Dave Page 2019-07-08 11:03:30 +01:00
parent 7c38c1cb38
commit 863f62f4d8
22 changed files with 86 additions and 86 deletions

View File

@ -1,8 +1,8 @@
-- RESOURCE GROUP: new_test_resql_resource_group
-- RESOURCE GROUP: Rg2_$%{}[]()&*^!@"'`\/#
-- DROP RESOURCE GROUP new_test_resql_resource_group
-- DROP RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#"
CREATE RESOURCE GROUP new_test_resql_resource_group;
CREATE RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#";
ALTER RESOURCE GROUP new_test_resql_resource_group
ALTER RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#"
SET cpu_rate_limit = 0, dirty_rate_limit = 0;

View File

@ -1,8 +1,8 @@
-- RESOURCE GROUP: new_test_resql_resource_group
-- RESOURCE GROUP: Rg2_$%{}[]()&*^!@"'`\/#
-- DROP RESOURCE GROUP new_test_resql_resource_group
-- DROP RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#"
CREATE RESOURCE GROUP new_test_resql_resource_group;
CREATE RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#";
ALTER RESOURCE GROUP new_test_resql_resource_group
ALTER RESOURCE GROUP "Rg2_$%{}[]()&*^!@""'`\/#"
SET cpu_rate_limit = 1, dirty_rate_limit = 5;

View File

@ -1,8 +1,8 @@
-- RESOURCE GROUP: test_resql_resource_group
-- RESOURCE GROUP: Rg1_$%{}[]()&*^!@"'`\/#
-- DROP RESOURCE GROUP test_resql_resource_group
-- DROP RESOURCE GROUP "Rg1_$%{}[]()&*^!@""'`\/#"
CREATE RESOURCE GROUP test_resql_resource_group;
CREATE RESOURCE GROUP "Rg1_$%{}[]()&*^!@""'`\/#";
ALTER RESOURCE GROUP test_resql_resource_group
ALTER RESOURCE GROUP "Rg1_$%{}[]()&*^!@""'`\/#"
SET cpu_rate_limit = 0, dirty_rate_limit = 0;

View File

@ -6,7 +6,7 @@
"endpoint": "NODE-resource_group.obj",
"sql_endpoint": "NODE-resource_group.sql_id",
"data": {
"name": "test_resql_resource_group",
"name": "Rg1_$%{}[]()&*^!@\"'`\\/#",
"cpu_rate_limit": 0,
"dirty_rate_limit": 0
},
@ -18,7 +18,7 @@
"endpoint": "NODE-resource_group.obj_id",
"sql_endpoint": "NODE-resource_group.sql_id",
"data": {
"name": "new_test_resql_resource_group"
"name": "Rg2_$%{}[]()&*^!@\"'`\\/#"
},
"expected_sql_file": "alter_resource_group_name.sql"
},

View File

@ -1,7 +1,7 @@
-- Role: test_resql_role_pg91
-- DROP ROLE test_resql_role_pg91;
-- Role: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role1_$%{}[]()&*^!@""'`\/#";
CREATE ROLE test_resql_role_pg91 WITH
CREATE ROLE "Role1_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE ROLE test_resql_role_pg91 WITH
NOCREATEROLE
NOREPLICATION;
COMMENT ON ROLE test_resql_role_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role1_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: new_test_resql_role_pg91
-- DROP ROLE new_test_resql_role_pg91;
-- Role: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role2_$%{}[]()&*^!@""'`\/#";
CREATE ROLE new_test_resql_role_pg91 WITH
CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE ROLE new_test_resql_role_pg91 WITH
NOCREATEROLE
NOREPLICATION;
COMMENT ON ROLE new_test_resql_role_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: new_test_resql_role_pg91
-- DROP ROLE new_test_resql_role_pg91;
-- Role: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role2_$%{}[]()&*^!@""'`\/#";
CREATE ROLE new_test_resql_role_pg91 WITH
CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
SUPERUSER
INHERIT
@ -10,6 +10,6 @@ CREATE ROLE new_test_resql_role_pg91 WITH
NOREPLICATION;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = new_test_resql_role_pg91;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = 'Role2_$%{}[]()&*^!@"''`\/#';
COMMENT ON ROLE new_test_resql_role_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: test_resql_user_pg91
-- DROP USER test_resql_user_pg91;
-- User: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role1_$%{}[]()&*^!@""'`\/#";
CREATE USER test_resql_user_pg91 WITH
CREATE USER "Role1_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT
@ -10,6 +10,6 @@ CREATE USER test_resql_user_pg91 WITH
REPLICATION;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = test_resql_user_pg91;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = 'Role1_$%{}[]()&*^!@"''`\/#';
COMMENT ON ROLE test_resql_user_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role1_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: new_test_resql_user_pg91
-- DROP USER new_test_resql_user_pg91;
-- User: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role2_$%{}[]()&*^!@""'`\/#";
CREATE USER new_test_resql_user_pg91 WITH
CREATE USER "Role2_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT
@ -10,6 +10,6 @@ CREATE USER new_test_resql_user_pg91 WITH
REPLICATION;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = new_test_resql_user_pg91;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = 'Role2_$%{}[]()&*^!@"''`\/#'';
COMMENT ON ROLE new_test_resql_user_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: new_test_resql_user_pg91
-- DROP USER new_test_resql_user_pg91;
-- User: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role2_$%{}[]()&*^!@""'`\/#";
CREATE USER new_test_resql_user_pg91 WITH
CREATE USER "Role2_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE USER new_test_resql_user_pg91 WITH
CREATEROLE
REPLICATION;
COMMENT ON ROLE new_test_resql_user_pg91 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: test_resql_role_pg91
-- DROP ROLE test_resql_role_pg91;
-- Role: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role1_$%{}[]()&*^!@""'`\/#";
CREATE ROLE test_resql_role_pg91 WITH
CREATE ROLE "Role1_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT

View File

@ -1,7 +1,7 @@
-- User: test_resql_user_pg91
-- DROP USER test_resql_user_pg91;
-- User: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role1_$%{}[]()&*^!@""'`\/#";
CREATE USER test_resql_user_pg91 WITH
CREATE USER "Role1_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT
@ -10,4 +10,4 @@ CREATE USER test_resql_user_pg91 WITH
REPLICATION;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = test_resql_user_pg91;
UPDATE pg_authid SET rolcatupdate=false WHERE rolname = 'Role1_$%{}[]()&*^!@"''`\/#'';

View File

@ -6,7 +6,7 @@
"endpoint": "NODE-role.obj",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "test_resql_role_pg91",
"rolname": "Role1_$%{}[]()&*^!@\"'`\\/#",
"rolcanlogin": false,
"rolpassword": null,
"rolconnlimit": -1,
@ -39,7 +39,7 @@
"endpoint": "NODE-role.obj_id",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "new_test_resql_role_pg91"
"rolname": "Role2_$%{}[]()&*^!@\"'`\\/#"
},
"expected_sql_file": "alter_role_name.sql"
},
@ -66,7 +66,7 @@
"endpoint": "NODE-role.obj",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "test_resql_user_pg91",
"rolname": "Role1_$%{}[]()&*^!@\"'`\\/#",
"rolcanlogin": true,
"rolpassword": null,
"rolconnlimit": -1,
@ -99,7 +99,7 @@
"endpoint": "NODE-role.obj_id",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "new_test_resql_user_pg91"
"rolname": "Role2_$%{}[]()&*^!@\"'`\\/#"
},
"expected_sql_file": "alter_user_name.sql"
},

View File

@ -1,7 +1,7 @@
-- Role: test_resql_role_pg95
-- DROP ROLE test_resql_role_pg95;
-- Role: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role1_$%{}[]()&*^!@""'`\/#";
CREATE ROLE test_resql_role_pg95 WITH
CREATE ROLE "Role1_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE ROLE test_resql_role_pg95 WITH
NOCREATEROLE
NOREPLICATION;
COMMENT ON ROLE test_resql_role_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role1_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: new_test_resql_role_pg95
-- DROP ROLE new_test_resql_role_pg95;
-- Role: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role2_$%{}[]()&*^!@""'`\/#";
CREATE ROLE new_test_resql_role_pg95 WITH
CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE ROLE new_test_resql_role_pg95 WITH
NOCREATEROLE
NOREPLICATION;
COMMENT ON ROLE new_test_resql_role_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: new_test_resql_role_pg95
-- DROP ROLE new_test_resql_role_pg95;
-- Role: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role2_$%{}[]()&*^!@""'`\/#";
CREATE ROLE new_test_resql_role_pg95 WITH
CREATE ROLE "Role2_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
SUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE ROLE new_test_resql_role_pg95 WITH
NOCREATEROLE
NOREPLICATION;
COMMENT ON ROLE new_test_resql_role_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: test_resql_user_pg95
-- DROP USER test_resql_user_pg95;
-- User: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role1_$%{}[]()&*^!@""'`\/#";
CREATE USER test_resql_user_pg95 WITH
CREATE USER "Role1_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE USER test_resql_user_pg95 WITH
CREATEROLE
REPLICATION;
COMMENT ON ROLE test_resql_user_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role1_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: new_test_resql_user_pg95
-- DROP USER new_test_resql_user_pg95;
-- User: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role2_$%{}[]()&*^!@""'`\/#";
CREATE USER new_test_resql_user_pg95 WITH
CREATE USER "Role2_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE USER new_test_resql_user_pg95 WITH
CREATEROLE
REPLICATION;
COMMENT ON ROLE new_test_resql_user_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- User: new_test_resql_user_pg95
-- DROP USER new_test_resql_user_pg95;
-- User: "Role2_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role2_$%{}[]()&*^!@""'`\/#";
CREATE USER new_test_resql_user_pg95 WITH
CREATE USER "Role2_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
NOSUPERUSER
INHERIT
@ -9,4 +9,4 @@ CREATE USER new_test_resql_user_pg95 WITH
CREATEROLE
REPLICATION;
COMMENT ON ROLE new_test_resql_user_pg95 IS 'This is detailed description';
COMMENT ON ROLE "Role2_$%{}[]()&*^!@""'`\/#" IS 'This is detailed description';

View File

@ -1,7 +1,7 @@
-- Role: test_resql_role_pg95
-- DROP ROLE test_resql_role_pg95;
-- Role: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP ROLE "Role1_$%{}[]()&*^!@""'`\/#";
CREATE ROLE test_resql_role_pg95 WITH
CREATE ROLE "Role1_$%{}[]()&*^!@""'`\/#" WITH
NOLOGIN
NOSUPERUSER
INHERIT

View File

@ -1,7 +1,7 @@
-- User: test_resql_user_pg95
-- DROP USER test_resql_user_pg95;
-- User: "Role1_$%{}[]()&*^!@""'`\/#"
-- DROP USER "Role1_$%{}[]()&*^!@""'`\/#";
CREATE USER test_resql_user_pg95 WITH
CREATE USER "Role1_$%{}[]()&*^!@""'`\/#" WITH
LOGIN
SUPERUSER
INHERIT

View File

@ -6,7 +6,7 @@
"endpoint": "NODE-role.obj",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "test_resql_role_pg95",
"rolname": "Role1_$%{}[]()&*^!@\"'`\\/#",
"rolcanlogin": false,
"rolpassword": null,
"rolconnlimit": -1,
@ -39,7 +39,7 @@
"endpoint": "NODE-role.obj_id",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "new_test_resql_role_pg95"
"rolname": "Role2_$%{}[]()&*^!@\"'`\\/#"
},
"expected_sql_file": "alter_role_name.sql"
},
@ -66,7 +66,7 @@
"endpoint": "NODE-role.obj",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "test_resql_user_pg95",
"rolname": "Role1_$%{}[]()&*^!@\"'`\\/#",
"rolcanlogin": true,
"rolpassword": null,
"rolconnlimit": -1,
@ -99,7 +99,7 @@
"endpoint": "NODE-role.obj_id",
"sql_endpoint": "NODE-role.sql_id",
"data": {
"rolname": "new_test_resql_user_pg95"
"rolname": "Role2_$%{}[]()&*^!@\"'`\\/#"
},
"expected_sql_file": "alter_user_name.sql"
},