Skip to content

Commit 055c653

Browse files
linq2dbotAzure Pipelines Bot
andauthored
Baselines for linq2db/linq2db#5226 (#1619)
* [Windows / SQLite (specialized tests)] baselines * [Windows / SQLite (both providers)] baselines * [Linux / PostgreSQL 15] baselines * [Linux / PostgreSQL 18] baselines * [Linux / Oracle 23c] baselines * [Linux / PostgreSQL 17] baselines * [Linux / PostgreSQL 16] baselines * [Linux / SQLite (both providers)] baselines --------- Co-authored-by: Azure Pipelines Bot <[email protected]>
1 parent 9614822 commit 055c653

11 files changed

+381
-9
lines changed

Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.BulkCopyRetrieveSequencesMultipleRowsUsingOptionsAsync(Oracle.23.Managed,InsertAll).sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ SELECT SEQUENCETESTSEQ.nextval ID from DUAL connect by level <= 4
1212
-- Oracle.23.Managed Oracle.Managed Oracle12
1313

1414
INSERT ALL
15-
INTO SEQUENCETEST (ID, VALUE) VALUES (37,'Value')
16-
INTO SEQUENCETEST (ID, VALUE) VALUES (38,'Value')
17-
INTO SEQUENCETEST (ID, VALUE) VALUES (39,'Value')
18-
INTO SEQUENCETEST (ID, VALUE) VALUES (40,'Value')
15+
INTO SEQUENCETEST (ID, VALUE) VALUES (111,'Value')
16+
INTO SEQUENCETEST (ID, VALUE) VALUES (112,'Value')
17+
INTO SEQUENCETEST (ID, VALUE) VALUES (113,'Value')
18+
INTO SEQUENCETEST (ID, VALUE) VALUES (114,'Value')
1919
SELECT * FROM dual
2020

Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.BulkCopyRetrieveSequencesMultipleRowsUsingOptionsAsync(Oracle.23.Managed,InsertDual).sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ INSERT INTO SEQUENCETEST
1717
VALUE
1818
)
1919

20-
SELECT 45,'Value' FROM DUAL UNION ALL
21-
SELECT 46,'Value' FROM DUAL UNION ALL
22-
SELECT 47,'Value' FROM DUAL UNION ALL
23-
SELECT 48,'Value' FROM DUAL
20+
SELECT 125,'Value' FROM DUAL UNION ALL
21+
SELECT 126,'Value' FROM DUAL UNION ALL
22+
SELECT 127,'Value' FROM DUAL UNION ALL
23+
SELECT 128,'Value' FROM DUAL
2424

Oracle.23.Managed/Tests/DataProvider/OracleTests/Tests.DataProvider.OracleTests.BulkCopyRetrieveSequencesMultipleRowsUsingOptionsAsync(Oracle.23.Managed,InsertInto).sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SELECT SEQUENCETESTSEQ.nextval ID from DUAL connect by level <= 4
1111

1212
-- Oracle.23.Managed Oracle.Managed Oracle12
1313
DECLARE @:p1 Int32
14-
SET @:p1 = {41,42,43,44}
14+
SET @:p1 = {121,122,123,124}
1515
DECLARE @:p2 Varchar2 -- String
1616
SET @:p2 = {'Value','Value','Value','Value'}
1717

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- PostgreSQL.15 PostgreSQL
2+
3+
SELECT
4+
u."Id",
5+
u."Name",
6+
aq."MachineNames",
7+
aq."Count_1"
8+
FROM
9+
"User" u
10+
LEFT JOIN (
11+
SELECT
12+
g_1."UserId" as "Key_1",
13+
STRING_AGG("a_Machine"."Name", ', ' ORDER BY "a_Machine"."Name" NULLS FIRST) as "MachineNames",
14+
COUNT(*) as "Count_1"
15+
FROM
16+
"UserMachineAssignment" g_1
17+
INNER JOIN "Machine" "a_Machine" ON g_1."MachineId" = "a_Machine"."Id" OR g_1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
18+
GROUP BY
19+
g_1."UserId"
20+
) aq ON aq."Key_1" = u."Id"
21+
22+
-- PostgreSQL.15 PostgreSQL
23+
24+
SELECT
25+
t1."Id",
26+
t1."Name"
27+
FROM
28+
"User" t1
29+
30+
-- PostgreSQL.15 PostgreSQL
31+
32+
SELECT
33+
t1."UserId",
34+
t1."MachineId",
35+
"a_Machine"."Id",
36+
"a_Machine"."Name"
37+
FROM
38+
"UserMachineAssignment" t1
39+
INNER JOIN "Machine" "a_Machine" ON t1."MachineId" = "a_Machine"."Id" OR t1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- PostgreSQL.16 PostgreSQL.15 PostgreSQL
2+
3+
SELECT
4+
u."Id",
5+
u."Name",
6+
aq."MachineNames",
7+
aq."Count_1"
8+
FROM
9+
"User" u
10+
LEFT JOIN (
11+
SELECT
12+
g_1."UserId" as "Key_1",
13+
STRING_AGG("a_Machine"."Name", ', ' ORDER BY "a_Machine"."Name" NULLS FIRST) as "MachineNames",
14+
COUNT(*) as "Count_1"
15+
FROM
16+
"UserMachineAssignment" g_1
17+
INNER JOIN "Machine" "a_Machine" ON g_1."MachineId" = "a_Machine"."Id" OR g_1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
18+
GROUP BY
19+
g_1."UserId"
20+
) aq ON aq."Key_1" = u."Id"
21+
22+
-- PostgreSQL.16 PostgreSQL.15 PostgreSQL
23+
24+
SELECT
25+
t1."Id",
26+
t1."Name"
27+
FROM
28+
"User" t1
29+
30+
-- PostgreSQL.16 PostgreSQL.15 PostgreSQL
31+
32+
SELECT
33+
t1."UserId",
34+
t1."MachineId",
35+
"a_Machine"."Id",
36+
"a_Machine"."Name"
37+
FROM
38+
"UserMachineAssignment" t1
39+
INNER JOIN "Machine" "a_Machine" ON t1."MachineId" = "a_Machine"."Id" OR t1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- PostgreSQL.17 PostgreSQL.15 PostgreSQL
2+
3+
SELECT
4+
u."Id",
5+
u."Name",
6+
aq."MachineNames",
7+
aq."Count_1"
8+
FROM
9+
"User" u
10+
LEFT JOIN (
11+
SELECT
12+
g_1."UserId" as "Key_1",
13+
STRING_AGG("a_Machine"."Name", ', ' ORDER BY "a_Machine"."Name" NULLS FIRST) as "MachineNames",
14+
COUNT(*) as "Count_1"
15+
FROM
16+
"UserMachineAssignment" g_1
17+
INNER JOIN "Machine" "a_Machine" ON g_1."MachineId" = "a_Machine"."Id" OR g_1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
18+
GROUP BY
19+
g_1."UserId"
20+
) aq ON aq."Key_1" = u."Id"
21+
22+
-- PostgreSQL.17 PostgreSQL.15 PostgreSQL
23+
24+
SELECT
25+
t1."Id",
26+
t1."Name"
27+
FROM
28+
"User" t1
29+
30+
-- PostgreSQL.17 PostgreSQL.15 PostgreSQL
31+
32+
SELECT
33+
t1."UserId",
34+
t1."MachineId",
35+
"a_Machine"."Id",
36+
"a_Machine"."Name"
37+
FROM
38+
"UserMachineAssignment" t1
39+
INNER JOIN "Machine" "a_Machine" ON t1."MachineId" = "a_Machine"."Id" OR t1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-- PostgreSQL.18 PostgreSQL
2+
3+
SELECT
4+
u."Id",
5+
u."Name",
6+
aq."MachineNames",
7+
aq."Count_1"
8+
FROM
9+
"User" u
10+
LEFT JOIN (
11+
SELECT
12+
g_1."UserId" as "Key_1",
13+
STRING_AGG("a_Machine"."Name", ', ' ORDER BY "a_Machine"."Name" NULLS FIRST) as "MachineNames",
14+
COUNT(*) as "Count_1"
15+
FROM
16+
"UserMachineAssignment" g_1
17+
INNER JOIN "Machine" "a_Machine" ON g_1."MachineId" = "a_Machine"."Id" OR g_1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
18+
GROUP BY
19+
g_1."UserId"
20+
) aq ON aq."Key_1" = u."Id"
21+
22+
-- PostgreSQL.18 PostgreSQL
23+
24+
SELECT
25+
t1."Id",
26+
t1."Name"
27+
FROM
28+
"User" t1
29+
30+
-- PostgreSQL.18 PostgreSQL
31+
32+
SELECT
33+
t1."UserId",
34+
t1."MachineId",
35+
"a_Machine"."Id",
36+
"a_Machine"."Name"
37+
FROM
38+
"UserMachineAssignment" t1
39+
INNER JOIN "Machine" "a_Machine" ON t1."MachineId" = "a_Machine"."Id" OR t1."MachineId" IS NULL AND "a_Machine"."Id" IS NULL
40+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- SQLite.Classic.MPM SQLite.Classic SQLite
2+
3+
SELECT
4+
[u].[Id],
5+
[u].[Name],
6+
(
7+
SELECT
8+
GROUP_CONCAT([t1].[Name], ', ')
9+
FROM
10+
(
11+
SELECT
12+
[a_Machine].[Name]
13+
FROM
14+
[UserMachineAssignment] [uma]
15+
INNER JOIN [Machine] [a_Machine] ON [uma].[MachineId] = [a_Machine].[Id] OR [uma].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
16+
WHERE
17+
[aq].[Key_1] = [uma].[UserId]
18+
ORDER BY
19+
[a_Machine].[Name]
20+
) [t1]
21+
),
22+
[aq].[Count_1]
23+
FROM
24+
[User] [u]
25+
LEFT JOIN (
26+
SELECT
27+
[g_1].[UserId] as [Key_1],
28+
COUNT(*) as [Count_1]
29+
FROM
30+
[UserMachineAssignment] [g_1]
31+
GROUP BY
32+
[g_1].[UserId]
33+
) [aq] ON [aq].[Key_1] = [u].[Id]
34+
35+
-- SQLite.Classic.MPM SQLite.Classic SQLite
36+
37+
SELECT
38+
[t1].[Id],
39+
[t1].[Name]
40+
FROM
41+
[User] [t1]
42+
43+
-- SQLite.Classic.MPM SQLite.Classic SQLite
44+
45+
SELECT
46+
[t1].[UserId],
47+
[t1].[MachineId],
48+
[a_Machine].[Id],
49+
[a_Machine].[Name]
50+
FROM
51+
[UserMachineAssignment] [t1]
52+
INNER JOIN [Machine] [a_Machine] ON [t1].[MachineId] = [a_Machine].[Id] OR [t1].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- SQLite.Classic.MPU SQLite.Classic SQLite
2+
3+
SELECT
4+
[u].[Id],
5+
[u].[Name],
6+
(
7+
SELECT
8+
GROUP_CONCAT([t1].[Name], ', ')
9+
FROM
10+
(
11+
SELECT
12+
[a_Machine].[Name]
13+
FROM
14+
[UserMachineAssignment] [uma]
15+
INNER JOIN [Machine] [a_Machine] ON [uma].[MachineId] = [a_Machine].[Id] OR [uma].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
16+
WHERE
17+
[aq].[Key_1] = [uma].[UserId]
18+
ORDER BY
19+
[a_Machine].[Name]
20+
) [t1]
21+
),
22+
[aq].[Count_1]
23+
FROM
24+
[User] [u]
25+
LEFT JOIN (
26+
SELECT
27+
[g_1].[UserId] as [Key_1],
28+
COUNT(*) as [Count_1]
29+
FROM
30+
[UserMachineAssignment] [g_1]
31+
GROUP BY
32+
[g_1].[UserId]
33+
) [aq] ON [aq].[Key_1] = [u].[Id]
34+
35+
-- SQLite.Classic.MPU SQLite.Classic SQLite
36+
37+
SELECT
38+
[t1].[Id],
39+
[t1].[Name]
40+
FROM
41+
[User] [t1]
42+
43+
-- SQLite.Classic.MPU SQLite.Classic SQLite
44+
45+
SELECT
46+
[t1].[UserId],
47+
[t1].[MachineId],
48+
[a_Machine].[Id],
49+
[a_Machine].[Name]
50+
FROM
51+
[UserMachineAssignment] [t1]
52+
INNER JOIN [Machine] [a_Machine] ON [t1].[MachineId] = [a_Machine].[Id] OR [t1].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
53+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- SQLite.Classic SQLite
2+
3+
SELECT
4+
[u].[Id],
5+
[u].[Name],
6+
(
7+
SELECT
8+
GROUP_CONCAT([t1].[Name], ', ')
9+
FROM
10+
(
11+
SELECT
12+
[a_Machine].[Name]
13+
FROM
14+
[UserMachineAssignment] [uma]
15+
INNER JOIN [Machine] [a_Machine] ON [uma].[MachineId] = [a_Machine].[Id] OR [uma].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
16+
WHERE
17+
[aq].[Key_1] = [uma].[UserId]
18+
ORDER BY
19+
[a_Machine].[Name]
20+
) [t1]
21+
),
22+
[aq].[Count_1]
23+
FROM
24+
[User] [u]
25+
LEFT JOIN (
26+
SELECT
27+
[g_1].[UserId] as [Key_1],
28+
COUNT(*) as [Count_1]
29+
FROM
30+
[UserMachineAssignment] [g_1]
31+
GROUP BY
32+
[g_1].[UserId]
33+
) [aq] ON [aq].[Key_1] = [u].[Id]
34+
35+
-- SQLite.Classic SQLite
36+
37+
SELECT
38+
[t1].[Id],
39+
[t1].[Name]
40+
FROM
41+
[User] [t1]
42+
43+
-- SQLite.Classic SQLite
44+
45+
SELECT
46+
[t1].[UserId],
47+
[t1].[MachineId],
48+
[a_Machine].[Id],
49+
[a_Machine].[Name]
50+
FROM
51+
[UserMachineAssignment] [t1]
52+
INNER JOIN [Machine] [a_Machine] ON [t1].[MachineId] = [a_Machine].[Id] OR [t1].[MachineId] IS NULL AND [a_Machine].[Id] IS NULL
53+

0 commit comments

Comments
 (0)