Skip to content

Commit e8c4d4c

Browse files
author
Azure Pipelines Bot
committed
[Linux / PostgreSQL (13-18)] baselines
1 parent aa146a5 commit e8c4d4c

72 files changed

Lines changed: 500 additions & 845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

PostgreSQL.13/Tests/Linq/DistinctByMethodTests/Tests.Linq.DistinctByMethodTests.DistinctBy(PostgreSQL.13).sql

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
SELECT
3+
SELECT DISTINCT ON (t1."Id", t1."Name")
44
t1."Id",
55
t1."Name",
6-
t1."Group_1",
7-
t1."Date_1",
6+
t1."Group",
7+
t1."Date",
88
t1."Amount",
99
t1."IsActive",
1010
t1."Priority"
1111
FROM
12-
(
13-
SELECT
14-
ROW_NUMBER() OVER (PARTITION BY e."Id", e."Name" ORDER BY e."Name", e."Date" DESC) as "RowNumber",
15-
e."Name",
16-
e."Date" as "Date_1",
17-
e."Id",
18-
e."Group" as "Group_1",
19-
e."Amount",
20-
e."IsActive",
21-
e."Priority"
22-
FROM
23-
"TestData" e
24-
) t1
25-
WHERE
26-
t1."RowNumber" = 1
12+
"TestData" t1
2713
ORDER BY
14+
t1."Id",
2815
t1."Name",
29-
t1."Date_1" DESC
16+
t1."Date" DESC
3017

3118
-- PostgreSQL.13 PostgreSQL13
3219

Original file line numberDiff line numberDiff line change
@@ -1,42 +1,38 @@
11
-- PostgreSQL.13 PostgreSQL13
22

33
SELECT
4-
x."Id"
4+
x_1."Id"
55
FROM
66
(
7-
SELECT
8-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority", e."Id") as "RowNumber",
9-
e."Priority",
10-
e."Id",
11-
e."Group" as "Group_1"
7+
SELECT DISTINCT ON (x."Group")
8+
x."Group" as "Group_1",
9+
x."Id"
1210
FROM
13-
"TestData" e
14-
) x
15-
WHERE
16-
x."RowNumber" = 1
11+
"TestData" x
12+
ORDER BY
13+
x."Group",
14+
x."Priority",
15+
x."Id"
16+
) x_1
1717
ORDER BY
18-
x."Group_1",
19-
x."Priority",
20-
x."Id"
18+
x_1."Group_1"
2119

2220
-- PostgreSQL.13 PostgreSQL13
2321

2422
SELECT
25-
x."Id"
23+
x_1."Id"
2624
FROM
2725
(
28-
SELECT
29-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority", e."Id") as "RowNumber",
30-
e."Priority",
31-
e."Id",
32-
e."Group" as "Group_1"
26+
SELECT DISTINCT ON (x."Group")
27+
x."Group" as "Group_1",
28+
x."Id"
3329
FROM
34-
"TestData" e
35-
) x
36-
WHERE
37-
x."RowNumber" = 1
30+
"TestData" x
31+
ORDER BY
32+
x."Group",
33+
x."Priority",
34+
x."Id"
35+
) x_1
3836
ORDER BY
39-
x."Group_1",
40-
x."Priority",
41-
x."Id"
37+
x_1."Group_1"
4238

PostgreSQL.13/Tests/Linq/DistinctByMethodTests/Tests.Linq.DistinctByMethodTests.DistinctByOrderByNulls(PostgreSQL.13,First,False).sql

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
SELECT
3+
SELECT DISTINCT ON (t1."Group")
44
t1."Id",
55
t1."Name",
6-
t1."Group_1",
7-
t1."Date_1",
6+
t1."Group",
7+
t1."Date",
88
t1."Amount",
99
t1."IsActive",
1010
t1."Priority"
1111
FROM
12-
(
13-
SELECT
14-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority" NULLS FIRST, e."Id", e."Date") as "RowNumber",
15-
e."Priority",
16-
e."Id",
17-
e."Date" as "Date_1",
18-
e."Name",
19-
e."Group" as "Group_1",
20-
e."Amount",
21-
e."IsActive"
22-
FROM
23-
"TestData" e
24-
) t1
25-
WHERE
26-
t1."RowNumber" = 1
12+
"TestData" t1
2713
ORDER BY
14+
t1."Group",
2815
t1."Priority" NULLS FIRST,
2916
t1."Id",
30-
t1."Date_1"
17+
t1."Date"
3118

3219
-- PostgreSQL.13 PostgreSQL13
3320

PostgreSQL.13/Tests/Linq/DistinctByMethodTests/Tests.Linq.DistinctByMethodTests.DistinctByOrderByNulls(PostgreSQL.13,First,True).sql

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
SELECT
3+
SELECT DISTINCT ON (t1."Group")
44
t1."Id",
55
t1."Name",
6-
t1."Group_1",
7-
t1."Date_1",
6+
t1."Group",
7+
t1."Date",
88
t1."Amount",
99
t1."IsActive",
1010
t1."Priority"
1111
FROM
12-
(
13-
SELECT
14-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority" DESC, e."Id", e."Date") as "RowNumber",
15-
e."Priority",
16-
e."Id",
17-
e."Date" as "Date_1",
18-
e."Name",
19-
e."Group" as "Group_1",
20-
e."Amount",
21-
e."IsActive"
22-
FROM
23-
"TestData" e
24-
) t1
25-
WHERE
26-
t1."RowNumber" = 1
12+
"TestData" t1
2713
ORDER BY
14+
t1."Group",
2815
t1."Priority" DESC,
2916
t1."Id",
30-
t1."Date_1"
17+
t1."Date"
3118

3219
-- PostgreSQL.13 PostgreSQL13
3320

PostgreSQL.13/Tests/Linq/DistinctByMethodTests/Tests.Linq.DistinctByMethodTests.DistinctByOrderByNulls(PostgreSQL.13,Last,False).sql

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
SELECT
3+
SELECT DISTINCT ON (t1."Group")
44
t1."Id",
55
t1."Name",
6-
t1."Group_1",
7-
t1."Date_1",
6+
t1."Group",
7+
t1."Date",
88
t1."Amount",
99
t1."IsActive",
1010
t1."Priority"
1111
FROM
12-
(
13-
SELECT
14-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority", e."Id", e."Date") as "RowNumber",
15-
e."Priority",
16-
e."Id",
17-
e."Date" as "Date_1",
18-
e."Name",
19-
e."Group" as "Group_1",
20-
e."Amount",
21-
e."IsActive"
22-
FROM
23-
"TestData" e
24-
) t1
25-
WHERE
26-
t1."RowNumber" = 1
12+
"TestData" t1
2713
ORDER BY
14+
t1."Group",
2815
t1."Priority",
2916
t1."Id",
30-
t1."Date_1"
17+
t1."Date"
3118

3219
-- PostgreSQL.13 PostgreSQL13
3320

PostgreSQL.13/Tests/Linq/DistinctByMethodTests/Tests.Linq.DistinctByMethodTests.DistinctByOrderByNulls(PostgreSQL.13,Last,True).sql

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
SELECT
3+
SELECT DISTINCT ON (t1."Group")
44
t1."Id",
55
t1."Name",
6-
t1."Group_1",
7-
t1."Date_1",
6+
t1."Group",
7+
t1."Date",
88
t1."Amount",
99
t1."IsActive",
1010
t1."Priority"
1111
FROM
12-
(
13-
SELECT
14-
ROW_NUMBER() OVER (PARTITION BY e."Group" ORDER BY e."Priority" DESC NULLS LAST, e."Id", e."Date") as "RowNumber",
15-
e."Priority",
16-
e."Id",
17-
e."Date" as "Date_1",
18-
e."Name",
19-
e."Group" as "Group_1",
20-
e."Amount",
21-
e."IsActive"
22-
FROM
23-
"TestData" e
24-
) t1
25-
WHERE
26-
t1."RowNumber" = 1
12+
"TestData" t1
2713
ORDER BY
14+
t1."Group",
2815
t1."Priority" DESC NULLS LAST,
2916
t1."Id",
30-
t1."Date_1"
17+
t1."Date"
3118

3219
-- PostgreSQL.13 PostgreSQL13
3320

PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.Issue5628DuplicateSequenceDefaultsPreferPrimaryKey(PostgreSQL.13).sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
CREATE SEQUENCE issue5628_code_seq_16
3+
CREATE SEQUENCE issue5628_code_seq_91
44

55
-- PostgreSQL.13 PostgreSQL13
66

7-
CREATE SEQUENCE issue5628_item_id_seq_16
7+
CREATE SEQUENCE issue5628_item_id_seq_91
88

99
-- PostgreSQL.13 PostgreSQL13
1010

11-
CREATE TABLE issue5628_two_defaults_pk_16 (
12-
code integer DEFAULT nextval('issue5628_code_seq_16'::regclass) NOT NULL,
13-
item_id integer DEFAULT nextval('issue5628_item_id_seq_16'::regclass) NOT NULL,
14-
CONSTRAINT issue5628_two_defaults_pk_16_pkey PRIMARY KEY (item_id)
11+
CREATE TABLE issue5628_two_defaults_pk_91 (
12+
code integer DEFAULT nextval('issue5628_code_seq_91'::regclass) NOT NULL,
13+
item_id integer DEFAULT nextval('issue5628_item_id_seq_91'::regclass) NOT NULL,
14+
CONSTRAINT issue5628_two_defaults_pk_91_pkey PRIMARY KEY (item_id)
1515
)
1616

1717
-- PostgreSQL.13 PostgreSQL13
@@ -315,13 +315,13 @@ SELECT * FROM testdata.public."TestTableFunction"(NULL::integer)
315315
RollbackTransaction
316316
-- PostgreSQL.13 PostgreSQL13
317317

318-
DROP TABLE IF EXISTS issue5628_two_defaults_pk_16
318+
DROP TABLE IF EXISTS issue5628_two_defaults_pk_91
319319

320320
-- PostgreSQL.13 PostgreSQL13
321321

322-
DROP SEQUENCE IF EXISTS issue5628_code_seq_16
322+
DROP SEQUENCE IF EXISTS issue5628_code_seq_91
323323

324324
-- PostgreSQL.13 PostgreSQL13
325325

326-
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_16
326+
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_91
327327

PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.Issue5628DuplicateSequenceDefaultsWithoutPrimaryKeyUseFirstColumn(PostgreSQL.13).sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
CREATE SEQUENCE issue5628_code_seq_17
3+
CREATE SEQUENCE issue5628_code_seq_92
44

55
-- PostgreSQL.13 PostgreSQL13
66

7-
CREATE SEQUENCE issue5628_item_id_seq_17
7+
CREATE SEQUENCE issue5628_item_id_seq_92
88

99
-- PostgreSQL.13 PostgreSQL13
1010

11-
CREATE TABLE issue5628_two_defaults_no_pk_17 (
12-
code integer DEFAULT nextval('issue5628_code_seq_17'::regclass) NOT NULL,
13-
item_id integer DEFAULT nextval('issue5628_item_id_seq_17'::regclass) NOT NULL
11+
CREATE TABLE issue5628_two_defaults_no_pk_92 (
12+
code integer DEFAULT nextval('issue5628_code_seq_92'::regclass) NOT NULL,
13+
item_id integer DEFAULT nextval('issue5628_item_id_seq_92'::regclass) NOT NULL
1414
)
1515

1616
-- PostgreSQL.13 PostgreSQL13
@@ -314,13 +314,13 @@ SELECT * FROM testdata.public."TestTableFunction"(NULL::integer)
314314
RollbackTransaction
315315
-- PostgreSQL.13 PostgreSQL13
316316

317-
DROP TABLE IF EXISTS issue5628_two_defaults_no_pk_17
317+
DROP TABLE IF EXISTS issue5628_two_defaults_no_pk_92
318318

319319
-- PostgreSQL.13 PostgreSQL13
320320

321-
DROP SEQUENCE IF EXISTS issue5628_code_seq_17
321+
DROP SEQUENCE IF EXISTS issue5628_code_seq_92
322322

323323
-- PostgreSQL.13 PostgreSQL13
324324

325-
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_17
325+
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_92
326326

PostgreSQL.13/Tests/SchemaProvider/PostgreSQLTests/Tests.SchemaProvider.PostgreSQLTests.Issue5628ParenthesizedSequenceDefaultIsIdentity(PostgreSQL.13).sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
-- PostgreSQL.13 PostgreSQL13
22

3-
CREATE SEQUENCE issue5628_item_id_seq_18
3+
CREATE SEQUENCE issue5628_item_id_seq_93
44

55
-- PostgreSQL.13 PostgreSQL13
66

7-
CREATE TABLE issue5628_parenthesized_default_18 (
8-
item_id integer DEFAULT (nextval('issue5628_item_id_seq_18'::regclass)) NOT NULL
7+
CREATE TABLE issue5628_parenthesized_default_93 (
8+
item_id integer DEFAULT (nextval('issue5628_item_id_seq_93'::regclass)) NOT NULL
99
)
1010

1111
-- PostgreSQL.13 PostgreSQL13
1212

1313
SELECT pg_get_expr(adbin, adrelid)
1414
FROM pg_attrdef
15-
WHERE adrelid = 'issue5628_parenthesized_default_18'::regclass
15+
WHERE adrelid = 'issue5628_parenthesized_default_93'::regclass
1616
AND adnum = 1
1717

1818
-- PostgreSQL.13 PostgreSQL13
@@ -316,9 +316,9 @@ SELECT * FROM testdata.public."TestTableFunction"(NULL::integer)
316316
RollbackTransaction
317317
-- PostgreSQL.13 PostgreSQL13
318318

319-
DROP TABLE IF EXISTS issue5628_parenthesized_default_18
319+
DROP TABLE IF EXISTS issue5628_parenthesized_default_93
320320

321321
-- PostgreSQL.13 PostgreSQL13
322322

323-
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_18
323+
DROP SEQUENCE IF EXISTS issue5628_item_id_seq_93
324324

0 commit comments

Comments
 (0)