Skip to content

Commit 7cb51b9

Browse files
author
Azure Pipelines Bot
committed
[Linux / PostgreSQL 17] baselines
1 parent 308a505 commit 7cb51b9

File tree

128 files changed

+5844
-0
lines changed

Some content is hidden

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

128 files changed

+5844
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
-- PostgreSQL.15 PostgreSQL
2+
DECLARE @Id Bigint -- Int64
3+
SET @Id = 1
4+
DECLARE @PermanentId Uuid -- Guid
5+
SET @PermanentId = 'bc7b663d-0fde-4327-8f92-5d8cc3a11d11'::uuid
6+
DECLARE @Code Text(2) -- String
7+
SET @Code = 'C1'
8+
DECLARE @Name Text(2) -- String
9+
SET @Name = 'N1'
10+
DECLARE @IsDeleted Boolean
11+
SET @IsDeleted = NULL
12+
13+
INSERT INTO "Subdivisions"
14+
(
15+
"Id",
16+
"PermanentId",
17+
"Code",
18+
"Name",
19+
"IsDeleted"
20+
)
21+
VALUES
22+
(
23+
:Id,
24+
:PermanentId,
25+
:Code,
26+
:Name,
27+
:IsDeleted
28+
)
29+
RETURNING
30+
"Id"
31+
32+
33+
34+
-- PostgreSQL.15 PostgreSQL
35+
DECLARE @Id Bigint -- Int64
36+
SET @Id = 2
37+
DECLARE @PermanentId Uuid -- Guid
38+
SET @PermanentId = 'a948600d-de21-4f74-8ac2-9516b287076e'::uuid
39+
DECLARE @Code Text(2) -- String
40+
SET @Code = 'C2'
41+
DECLARE @Name Text(2) -- String
42+
SET @Name = 'N2'
43+
DECLARE @IsDeleted Boolean
44+
SET @IsDeleted = NULL
45+
46+
INSERT INTO "Subdivisions"
47+
(
48+
"Id",
49+
"PermanentId",
50+
"Code",
51+
"Name",
52+
"IsDeleted"
53+
)
54+
VALUES
55+
(
56+
:Id,
57+
:PermanentId,
58+
:Code,
59+
:Name,
60+
:IsDeleted
61+
)
62+
RETURNING
63+
"Id"
64+
65+
66+
67+
-- PostgreSQL.15 PostgreSQL
68+
DECLARE @Id Bigint -- Int64
69+
SET @Id = 3
70+
DECLARE @PermanentId Uuid -- Guid
71+
SET @PermanentId = 'bd3973a5-4323-4dd8-9f4f-df9f93e2a627'::uuid
72+
DECLARE @Code Text(2) -- String
73+
SET @Code = 'C3'
74+
DECLARE @Name Text(2) -- String
75+
SET @Name = 'N3'
76+
DECLARE @IsDeleted Boolean
77+
SET @IsDeleted = NULL
78+
79+
INSERT INTO "Subdivisions"
80+
(
81+
"Id",
82+
"PermanentId",
83+
"Code",
84+
"Name",
85+
"IsDeleted"
86+
)
87+
VALUES
88+
(
89+
:Id,
90+
:PermanentId,
91+
:Code,
92+
:Name,
93+
:IsDeleted
94+
)
95+
RETURNING
96+
"Id"
97+
98+
99+
100+
SELECT s."Id", s."Code", s."IsDeleted", s."Name", s."PermanentId"
101+
FROM "Subdivisions" AS s
102+
WHERE s."Id"::bigint = 1
103+
104+
105+
-- PostgreSQL.15 PostgreSQL
106+
107+
SELECT
108+
s."Id",
109+
s."PermanentId",
110+
s."Code",
111+
s."Name",
112+
s."IsDeleted"
113+
FROM
114+
"Subdivisions" s
115+
WHERE
116+
s."Id"::BigInt = 1
117+
118+
119+
120+
-- PostgreSQL.15 PostgreSQL
121+
DECLARE @id Bigint -- Int64
122+
SET @id = 1
123+
124+
SELECT
125+
s."Id",
126+
s."PermanentId",
127+
s."Code",
128+
s."Name",
129+
s."IsDeleted"
130+
FROM
131+
"Subdivisions" s
132+
WHERE
133+
s."Id" = :id
134+
135+
136+
137+
-- PostgreSQL.15 PostgreSQL
138+
139+
SELECT
140+
s."Id",
141+
s."PermanentId",
142+
s."Code",
143+
s."Name",
144+
s."IsDeleted"
145+
FROM
146+
"Subdivisions" s
147+
WHERE
148+
s."Id" IN (2, 3)
149+
150+
151+
152+
-- PostgreSQL.15 PostgreSQL
153+
154+
SELECT
155+
t1."Id",
156+
t1."PermanentId",
157+
t1."Code",
158+
t1."Name",
159+
t1."IsDeleted"
160+
FROM
161+
"Subdivisions" t1
162+
163+
164+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- PostgreSQL.15 PostgreSQL
2+
3+
SELECT
4+
t1."Id",
5+
t1."Name"
6+
FROM
7+
"Issue261Table" t1
8+
9+
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Parameters:
2+
@p0='?' (DbType = Object), @p1='?', @p2='?' (DbType = Object), @p3='?' (DbType = Object), @p4='?', @p5='?' (DbType = Object), @p6='?' (DbType = Object), @p7='?', @p8='?' (DbType = Object)
3+
4+
INSERT INTO "Issue4783DBRecords" ("NullableStatus", "Source", "Status")
5+
VALUES (@p0, @p1, @p2)
6+
RETURNING "Id";
7+
INSERT INTO "Issue4783DBRecords" ("NullableStatus", "Source", "Status")
8+
VALUES (@p3, @p4, @p5)
9+
RETURNING "Id";
10+
INSERT INTO "Issue4783DBRecords" ("NullableStatus", "Source", "Status")
11+
VALUES (@p6, @p7, @p8)
12+
RETURNING "Id";
13+
14+
15+
-- PostgreSQL.15 PostgreSQL (asynchronously)
16+
17+
INSERT INTO "Issue4783DBRecords"
18+
(
19+
"Source",
20+
"Status",
21+
"NullableStatus"
22+
)
23+
VALUES
24+
('linq2db','open'::issue4783db_status,'open'::issue4783db_status),
25+
('linq2db','closed'::issue4783db_status,'closed'::issue4783db_status),
26+
('linq2db','closed'::issue4783db_status,NULL)
27+
28+
29+
30+
-- PostgreSQL.15 PostgreSQL (asynchronously)
31+
32+
SELECT
33+
t1."Id",
34+
t1."Source",
35+
t1."Status",
36+
t1."NullableStatus"
37+
FROM
38+
"Issue4783DBRecords" t1
39+
ORDER BY
40+
t1."Id"
41+
42+
43+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- PostgreSQL.15 PostgreSQL (asynchronously)
2+
3+
SELECT
4+
t1."Id",
5+
t1."Name"
6+
FROM
7+
"Issue4917DBRecords" t1
8+
9+
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
-- PostgreSQL.15 PostgreSQL
2+
3+
CREATE TEMPORARY TABLE issue_4940_temp_table
4+
(
5+
"Id" integer NOT NULL,
6+
"Source" text NOT NULL,
7+
"Status" issue4940db_status NOT NULL,
8+
"NullableStatus" issue4940db_status NULL
9+
)
10+
ON COMMIT PRESERVE ROWS
11+
12+
13+
14+
-- PostgreSQL.15 PostgreSQL
15+
16+
INSERT INTO issue_4940_temp_table
17+
(
18+
"Id",
19+
"Source",
20+
"Status",
21+
"NullableStatus"
22+
)
23+
VALUES
24+
(1,'TempTable','open'::issue4940db_status,'closed'::issue4940db_status),
25+
(2,'TempTable','closed'::issue4940db_status,NULL)
26+
27+
28+
29+
-- PostgreSQL.15 PostgreSQL
30+
DECLARE @Id Integer -- Int32
31+
SET @Id = 1
32+
DECLARE @Source Text(6) -- String
33+
SET @Source = 'Insert'
34+
DECLARE @Status Enum -- Object
35+
SET @Status = 'open'::issue4940db_status
36+
DECLARE @NullableStatus Enum -- Object
37+
SET @NullableStatus = 'closed'::issue4940db_status
38+
39+
INSERT INTO "Issue4940DBRecords"
40+
(
41+
"Id",
42+
"Source",
43+
"Status",
44+
"NullableStatus"
45+
)
46+
VALUES
47+
(
48+
:Id,
49+
:Source,
50+
:Status,
51+
:NullableStatus
52+
)
53+
54+
55+
56+
-- PostgreSQL.15 PostgreSQL
57+
DECLARE @Id Integer -- Int32
58+
SET @Id = 2
59+
DECLARE @Source Text(6) -- String
60+
SET @Source = 'Insert'
61+
DECLARE @Status Enum -- Object
62+
SET @Status = 'closed'::issue4940db_status
63+
DECLARE @NullableStatus Unknown -- Object
64+
SET @NullableStatus = NULL
65+
66+
INSERT INTO "Issue4940DBRecords"
67+
(
68+
"Id",
69+
"Source",
70+
"Status",
71+
"NullableStatus"
72+
)
73+
VALUES
74+
(
75+
:Id,
76+
:Source,
77+
:Status,
78+
:NullableStatus
79+
)
80+
81+
82+
83+
INSERT BULK "Issue4940DBRecords"(Id, Source, Status, NullableStatus)
84+
85+
86+
87+
-- PostgreSQL.15 PostgreSQL
88+
89+
MERGE INTO "Issue4940DBRecords" "Target"
90+
USING (VALUES
91+
('Merge',5,'open'::issue4940db_status,'open'::issue4940db_status),
92+
('Merge',6,'open'::issue4940db_status,NULL)
93+
) "Source"
94+
(
95+
"Source",
96+
"Id",
97+
"Status",
98+
"NullableStatus"
99+
)
100+
ON ("Target"."Source" = "Source"."Source")
101+
102+
WHEN NOT MATCHED THEN
103+
INSERT
104+
(
105+
"Id",
106+
"Source",
107+
"Status",
108+
"NullableStatus"
109+
)
110+
VALUES
111+
(
112+
"Source"."Id",
113+
"Source"."Source",
114+
"Source"."Status",
115+
"Source"."NullableStatus"
116+
)
117+
118+
WHEN MATCHED THEN
119+
UPDATE
120+
SET
121+
"Id" = "Source"."Id",
122+
"Source" = "Source"."Source",
123+
"Status" = "Source"."Status",
124+
"NullableStatus" = "Source"."NullableStatus"
125+
126+
127+
128+
-- PostgreSQL.15 PostgreSQL (asynchronously)
129+
130+
SELECT
131+
t1."Id",
132+
t1."Source",
133+
t1."Status",
134+
t1."NullableStatus"
135+
FROM
136+
"Issue4940DBRecords" t1
137+
ORDER BY
138+
t1."Id"
139+
140+
141+
142+
-- PostgreSQL.15 PostgreSQL (asynchronously)
143+
144+
SELECT
145+
t1."Id",
146+
t1."Source",
147+
t1."Status",
148+
t1."NullableStatus"
149+
FROM
150+
issue_4940_temp_table t1
151+
ORDER BY
152+
t1."Id"
153+
154+
155+
156+
-- PostgreSQL.15 PostgreSQL
157+
158+
DROP TABLE IF EXISTS issue_4940_temp_table
159+
160+
161+

0 commit comments

Comments
 (0)