Fixed API test cases for Postgres 14.4

This commit is contained in:
Akshay Joshi 2022-08-17 15:29:56 +05:30
parent da927f4897
commit 3583b094d0
22 changed files with 24 additions and 24 deletions

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -8,7 +8,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -10,7 +10,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -1,7 +1,7 @@
DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#"; DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#";
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
AS AS
SELECT 12 SELECT 12 AS col1
WITH NO DATA; WITH NO DATA;
COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -8,7 +8,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -1,7 +1,7 @@
CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -14,7 +14,7 @@
"seclabels": [], "seclabels": [],
"name": "testmview_$%{}[]()&*^!/@`#", "name": "testmview_$%{}[]()&*^!/@`#",
"comment": "comment1", "comment": "comment1",
"definition": "SELECT 1" "definition": "SELECT 1 AS col1"
}, },
"expected_sql_file": "create_mview.sql", "expected_sql_file": "create_mview.sql",
"expected_msql_file": "create_mview_msql.sql" "expected_msql_file": "create_mview_msql.sql"
@ -195,7 +195,7 @@
"sql_endpoint": "NODE-mview.sql_id", "sql_endpoint": "NODE-mview.sql_id",
"msql_endpoint": "NODE-mview.msql_id", "msql_endpoint": "NODE-mview.msql_id",
"data": { "data": {
"definition": "SELECT 12;" "definition": "SELECT 12 AS col1;"
}, },
"expected_sql_file": "alter_mview_definition.sql", "expected_sql_file": "alter_mview_definition.sql",
"expected_msql_file": "alter_mview_definition_msql.sql" "expected_msql_file": "alter_mview_definition_msql.sql"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -8,7 +8,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -10,7 +10,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -1,7 +1,7 @@
DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#"; DROP MATERIALIZED VIEW IF EXISTS public."testmview_$%{}[]()&*^!/@`#";
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
AS AS
SELECT 12 SELECT 12 AS col1
WITH NO DATA; WITH NO DATA;
COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" COMMENT ON MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -8,7 +8,7 @@ WITH (
) )
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 12 SELECT 12 AS col1
WITH DATA; WITH DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -5,7 +5,7 @@
CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW IF NOT EXISTS public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -1,7 +1,7 @@
CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#" CREATE MATERIALIZED VIEW public."testmview_$%{}[]()&*^!/@`#"
TABLESPACE pg_default TABLESPACE pg_default
AS AS
SELECT 1 SELECT 1 AS col1
WITH NO DATA; WITH NO DATA;
ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#" ALTER TABLE IF EXISTS public."testmview_$%{}[]()&*^!/@`#"

View File

@ -14,7 +14,7 @@
"seclabels": [], "seclabels": [],
"name": "testmview_$%{}[]()&*^!/@`#", "name": "testmview_$%{}[]()&*^!/@`#",
"comment": "comment1", "comment": "comment1",
"definition": "SELECT 1" "definition": "SELECT 1 AS col1"
}, },
"expected_sql_file": "create_mview.sql", "expected_sql_file": "create_mview.sql",
"expected_msql_file": "create_mview_msql.sql" "expected_msql_file": "create_mview_msql.sql"
@ -195,7 +195,7 @@
"sql_endpoint": "NODE-mview.sql_id", "sql_endpoint": "NODE-mview.sql_id",
"msql_endpoint": "NODE-mview.msql_id", "msql_endpoint": "NODE-mview.msql_id",
"data": { "data": {
"definition": "SELECT 12;" "definition": "SELECT 12 AS col1;"
}, },
"expected_sql_file": "alter_mview_definition.sql", "expected_sql_file": "alter_mview_definition.sql",
"expected_msql_file": "alter_mview_definition_msql.sql" "expected_msql_file": "alter_mview_definition_msql.sql"