From 3583b094d02a1b53f957b8907fc3a7bf99992c63 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Wed, 17 Aug 2022 15:29:56 +0530 Subject: [PATCH] Fixed API test cases for Postgres 14.4 --- .../databases/schemas/views/tests/pg/default/alter_mview.sql | 2 +- .../views/tests/pg/default/alter_mview_add_fillfactor.sql | 2 +- .../tests/pg/default/alter_mview_add_table_parameter.sql | 2 +- .../tests/pg/default/alter_mview_change_grantee_priv.sql | 2 +- .../schemas/views/tests/pg/default/alter_mview_definition.sql | 2 +- .../views/tests/pg/default/alter_mview_definition_msql.sql | 2 +- .../views/tests/pg/default/alter_mview_drop_all_priv.sql | 2 +- .../tests/pg/default/alter_mview_remove_table_parameter.sql | 2 +- .../databases/schemas/views/tests/pg/default/create_mview.sql | 2 +- .../schemas/views/tests/pg/default/create_mview_msql.sql | 2 +- .../databases/schemas/views/tests/pg/default/test_mview.json | 4 ++-- .../schemas/views/tests/ppas/default/alter_mview.sql | 2 +- .../views/tests/ppas/default/alter_mview_add_fillfactor.sql | 2 +- .../tests/ppas/default/alter_mview_add_table_parameter.sql | 2 +- .../tests/ppas/default/alter_mview_change_grantee_priv.sql | 2 +- .../views/tests/ppas/default/alter_mview_definition.sql | 2 +- .../views/tests/ppas/default/alter_mview_definition_msql.sql | 2 +- .../views/tests/ppas/default/alter_mview_drop_all_priv.sql | 2 +- .../tests/ppas/default/alter_mview_remove_table_parameter.sql | 2 +- .../schemas/views/tests/ppas/default/create_mview.sql | 2 +- .../schemas/views/tests/ppas/default/create_mview_msql.sql | 2 +- .../schemas/views/tests/ppas/default/test_mview.json | 4 ++-- 22 files changed, 24 insertions(+), 24 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview.sql index fe6e1a8dd..e60d08e01 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_fillfactor.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_fillfactor.sql index 74c714650..c180c1b60 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_fillfactor.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_fillfactor.sql @@ -8,7 +8,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_table_parameter.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_table_parameter.sql index 252ca002a..3b7b0f3e3 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_table_parameter.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_add_table_parameter.sql @@ -10,7 +10,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_change_grantee_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_change_grantee_priv.sql index 973ed0de5..0ce2ba73f 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_change_grantee_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_change_grantee_priv.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition.sql index 43c20641c..ae644bea1 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition_msql.sql index d45737333..f1fab88d0 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_definition_msql.sql @@ -1,7 +1,7 @@ DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#"; CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" AS -SELECT 12 +SELECT 12 AS col1 WITH NO DATA; COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_drop_all_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_drop_all_priv.sql index 1fb2031e4..d3402a817 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_drop_all_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_drop_all_priv.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_remove_table_parameter.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_remove_table_parameter.sql index 74c714650..c180c1b60 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_remove_table_parameter.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/alter_mview_remove_table_parameter.sql @@ -8,7 +8,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview.sql index 087462745..9d9290a39 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview_msql.sql index cacc129ae..e558dd487 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/create_mview_msql.sql @@ -1,7 +1,7 @@ CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS -SELECT 1 +SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/test_mview.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/test_mview.json index fea2f469b..1feb2d1a5 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/test_mview.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/pg/default/test_mview.json @@ -14,7 +14,7 @@ "seclabels": [], "name": "testmview_$%{}[]()&*^!/@`#", "comment": "comment1", - "definition": "SELECT 1" + "definition": "SELECT 1 AS col1" }, "expected_sql_file": "create_mview.sql", "expected_msql_file": "create_mview_msql.sql" @@ -195,7 +195,7 @@ "sql_endpoint": "NODE-mview.sql_id", "msql_endpoint": "NODE-mview.msql_id", "data": { - "definition": "SELECT 12;" + "definition": "SELECT 12 AS col1;" }, "expected_sql_file": "alter_mview_definition.sql", "expected_msql_file": "alter_mview_definition_msql.sql" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview.sql index 4e22b6509..2d0de4975 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_fillfactor.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_fillfactor.sql index 11cc4e76f..217ede745 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_fillfactor.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_fillfactor.sql @@ -8,7 +8,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_table_parameter.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_table_parameter.sql index dc7795f26..812a4c121 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_table_parameter.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_add_table_parameter.sql @@ -10,7 +10,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_change_grantee_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_change_grantee_priv.sql index 02581ca91..1787a6658 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_change_grantee_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_change_grantee_priv.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition.sql index 3b116a5ca..294219ee5 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition_msql.sql index d45737333..f1fab88d0 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_definition_msql.sql @@ -1,7 +1,7 @@ DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#"; CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" AS -SELECT 12 +SELECT 12 AS col1 WITH NO DATA; COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_drop_all_priv.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_drop_all_priv.sql index 77b1a19fd..485bed693 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_drop_all_priv.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_drop_all_priv.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_remove_table_parameter.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_remove_table_parameter.sql index 11cc4e76f..217ede745 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_remove_table_parameter.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/alter_mview_remove_table_parameter.sql @@ -8,7 +8,7 @@ WITH ( ) TABLESPACE pg_default AS - SELECT 12 + SELECT 12 AS col1 WITH DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview.sql index b64a2d271..33c6a4aa1 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview.sql @@ -5,7 +5,7 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS - SELECT 1 + SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview_msql.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview_msql.sql index f02deb130..8129729df 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview_msql.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/create_mview_msql.sql @@ -1,7 +1,7 @@ CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" TABLESPACE pg_default AS -SELECT 1 +SELECT 1 AS col1 WITH NO DATA; ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/test_mview.json b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/test_mview.json index d0586836c..aacf62106 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/test_mview.json +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/views/tests/ppas/default/test_mview.json @@ -14,7 +14,7 @@ "seclabels": [], "name": "testmview_$%{}[]()&*^!/@`#", "comment": "comment1", - "definition": "SELECT 1" + "definition": "SELECT 1 AS col1" }, "expected_sql_file": "create_mview.sql", "expected_msql_file": "create_mview_msql.sql" @@ -195,7 +195,7 @@ "sql_endpoint": "NODE-mview.sql_id", "msql_endpoint": "NODE-mview.msql_id", "data": { - "definition": "SELECT 12;" + "definition": "SELECT 12 AS col1;" }, "expected_sql_file": "alter_mview_definition.sql", "expected_msql_file": "alter_mview_definition_msql.sql"