Skip to content

Commit 6fe2d1b

Browse files
author
Azure Pipelines Bot
committed
[Windows / SQLite (both providers)] baselines
1 parent 151fce4 commit 6fe2d1b

File tree

98 files changed

+4726
-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.

98 files changed

+4726
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
-- SQLite.MS SQLite
2+
DECLARE @Id -- Int64
3+
SET @Id = 1
4+
DECLARE @PermanentId -- Guid
5+
SET @PermanentId = 'BC7B663D-0FDE-4327-8F92-5D8CC3A11D11'
6+
DECLARE @Code NVarChar(2) -- String
7+
SET @Code = 'C1'
8+
DECLARE @Name NVarChar(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+
30+
31+
32+
-- SQLite.MS SQLite
33+
34+
SELECT last_insert_rowid()
35+
36+
37+
38+
-- SQLite.MS SQLite
39+
DECLARE @Id -- Int64
40+
SET @Id = 2
41+
DECLARE @PermanentId -- Guid
42+
SET @PermanentId = 'A948600D-DE21-4F74-8AC2-9516B287076E'
43+
DECLARE @Code NVarChar(2) -- String
44+
SET @Code = 'C2'
45+
DECLARE @Name NVarChar(2) -- String
46+
SET @Name = 'N2'
47+
DECLARE @IsDeleted -- Boolean
48+
SET @IsDeleted = NULL
49+
50+
INSERT INTO [Subdivisions]
51+
(
52+
[Id],
53+
[PermanentId],
54+
[Code],
55+
[Name],
56+
[IsDeleted]
57+
)
58+
VALUES
59+
(
60+
@Id,
61+
@PermanentId,
62+
@Code,
63+
@Name,
64+
@IsDeleted
65+
)
66+
67+
68+
69+
-- SQLite.MS SQLite
70+
71+
SELECT last_insert_rowid()
72+
73+
74+
75+
-- SQLite.MS SQLite
76+
DECLARE @Id -- Int64
77+
SET @Id = 3
78+
DECLARE @PermanentId -- Guid
79+
SET @PermanentId = 'BD3973A5-4323-4DD8-9F4F-DF9F93E2A627'
80+
DECLARE @Code NVarChar(2) -- String
81+
SET @Code = 'C3'
82+
DECLARE @Name NVarChar(2) -- String
83+
SET @Name = 'N3'
84+
DECLARE @IsDeleted -- Boolean
85+
SET @IsDeleted = NULL
86+
87+
INSERT INTO [Subdivisions]
88+
(
89+
[Id],
90+
[PermanentId],
91+
[Code],
92+
[Name],
93+
[IsDeleted]
94+
)
95+
VALUES
96+
(
97+
@Id,
98+
@PermanentId,
99+
@Code,
100+
@Name,
101+
@IsDeleted
102+
)
103+
104+
105+
106+
-- SQLite.MS SQLite
107+
108+
SELECT last_insert_rowid()
109+
110+
111+
112+
SELECT "s"."Id", "s"."Code", "s"."IsDeleted", "s"."Name", "s"."PermanentId"
113+
FROM "Subdivisions" AS "s"
114+
WHERE CAST("s"."Id" AS INTEGER) = 1
115+
116+
117+
-- SQLite.MS SQLite
118+
119+
SELECT
120+
[s].[Id],
121+
[s].[PermanentId],
122+
[s].[Code],
123+
[s].[Name],
124+
[s].[IsDeleted]
125+
FROM
126+
[Subdivisions] [s]
127+
WHERE
128+
CAST([s].[Id] AS INTEGER) = 1
129+
130+
131+
132+
-- SQLite.MS SQLite
133+
DECLARE @id -- Int64
134+
SET @id = 1
135+
136+
SELECT
137+
[s].[Id],
138+
[s].[PermanentId],
139+
[s].[Code],
140+
[s].[Name],
141+
[s].[IsDeleted]
142+
FROM
143+
[Subdivisions] [s]
144+
WHERE
145+
[s].[Id] = @id
146+
147+
148+
149+
-- SQLite.MS SQLite
150+
151+
SELECT
152+
[s].[Id],
153+
[s].[PermanentId],
154+
[s].[Code],
155+
[s].[Name],
156+
[s].[IsDeleted]
157+
FROM
158+
[Subdivisions] [s]
159+
WHERE
160+
[s].[Id] IN (2, 3)
161+
162+
163+
164+
-- SQLite.MS SQLite
165+
166+
SELECT
167+
[t1].[Id],
168+
[t1].[PermanentId],
169+
[t1].[Code],
170+
[t1].[Name],
171+
[t1].[IsDeleted]
172+
FROM
173+
[Subdivisions] [t1]
174+
175+
176+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- SQLite.MS SQLite
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,14 @@
1+
-- SQLite.MS SQLite
2+
DECLARE @id -- Int32
3+
SET @id = 1
4+
5+
SELECT
6+
[e].[Id],
7+
[e].[Value]
8+
FROM
9+
[Issue306Entity] [e]
10+
WHERE
11+
[e].[Id] = @id
12+
13+
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT "w"."Id", "w"."Value"
2+
FROM "WithDuplicateProperties" AS "w"
3+
WHERE "w"."Value" = 1
4+
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
-- SQLite.MS SQLite
2+
3+
CREATE TEMPORARY TABLE temp.[NoIdentity]
4+
(
5+
[Id] TEXT NOT NULL,
6+
[Name] TEXT NOT NULL,
7+
8+
CONSTRAINT [PK_NoIdentity] PRIMARY KEY ([Id])
9+
)
10+
11+
12+
13+
-- SQLite.MS SQLite
14+
15+
INSERT INTO temp.[NoIdentity]
16+
(
17+
[Id],
18+
[Name]
19+
)
20+
VALUES
21+
('BC7B663D-0FDE-4327-8F92-5D8CC3A11D11','John Doe'),
22+
('A948600D-DE21-4F74-8AC2-9516B287076E','Jane Doe')
23+
24+
25+
26+
-- SQLite.MS SQLite
27+
28+
SELECT
29+
[t1].[Id],
30+
[t1].[Name]
31+
FROM
32+
temp.[NoIdentity] [t1]
33+
34+
35+
36+
-- SQLite.MS SQLite
37+
38+
DROP TABLE IF EXISTS temp.[NoIdentity]
39+
40+
41+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
-- SQLite.MS SQLite
2+
3+
CREATE TEMPORARY TABLE temp.[WithIdentity]
4+
(
5+
[Id] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
6+
[Name] TEXT NOT NULL
7+
)
8+
9+
10+
11+
-- SQLite.MS SQLite
12+
13+
INSERT INTO temp.[WithIdentity]
14+
(
15+
[Name]
16+
)
17+
VALUES
18+
('John Doe'),
19+
('Jane Doe')
20+
21+
22+
23+
-- SQLite.MS SQLite
24+
25+
SELECT
26+
[t1].[Id],
27+
[t1].[Name]
28+
FROM
29+
temp.[WithIdentity] [t1]
30+
31+
32+
33+
-- SQLite.MS SQLite
34+
35+
DROP TABLE IF EXISTS temp.[WithIdentity]
36+
37+
38+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Parameters:
2+
@p0='?' (Size = 16)
3+
4+
INSERT INTO "WithInheritance" ("Discriminator")
5+
VALUES (@p0)
6+
RETURNING "Id";
7+
8+
9+
Parameters:
10+
@p0='?' (Size = 17)
11+
12+
INSERT INTO "WithInheritance" ("Discriminator")
13+
VALUES (@p0)
14+
RETURNING "Id";
15+
16+
17+
Parameters:
18+
@p0='?' (Size = 17)
19+
20+
INSERT INTO "WithInheritance" ("Discriminator")
21+
VALUES (@p0)
22+
RETURNING "Id";
23+
24+
25+
Parameters:
26+
@p0='?' (Size = 17)
27+
28+
INSERT INTO "WithInheritance" ("Discriminator")
29+
VALUES (@p0)
30+
RETURNING "Id";
31+
32+
33+
Parameters:
34+
@p0='?' (Size = 17)
35+
36+
INSERT INTO "WithInheritance" ("Discriminator")
37+
VALUES (@p0)
38+
RETURNING "Id";
39+
40+
41+
-- SQLite.MS SQLite
42+
43+
SELECT
44+
[t1].[Discriminator],
45+
[t1].[Id]
46+
FROM
47+
[WithInheritance] [t1]
48+
WHERE
49+
[t1].[Discriminator] IN ('WithInheritanceA2', 'WithInheritanceA1', 'WithInheritanceA')
50+
51+
52+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
-- SQLite.MS SQLite
2+
3+
CREATE TEMPORARY TABLE temp.[NoIdentity]
4+
(
5+
[Id] TEXT NOT NULL,
6+
[Name] TEXT NOT NULL,
7+
8+
CONSTRAINT [PK_NoIdentity] PRIMARY KEY ([Id])
9+
)
10+
11+
12+
13+
-- SQLite.MS SQLite (asynchronously)
14+
15+
INSERT INTO temp.[NoIdentity]
16+
(
17+
[Id],
18+
[Name]
19+
)
20+
VALUES
21+
('BC7B663D-0FDE-4327-8F92-5D8CC3A11D11','John Doe'),
22+
('A948600D-DE21-4F74-8AC2-9516B287076E','Jane Doe')
23+
24+
25+
26+
-- SQLite.MS SQLite
27+
28+
SELECT
29+
[t1].[Id],
30+
[t1].[Name]
31+
FROM
32+
temp.[NoIdentity] [t1]
33+
34+
35+
36+
-- SQLite.MS SQLite
37+
38+
DROP TABLE IF EXISTS temp.[NoIdentity]
39+
40+
41+

0 commit comments

Comments
 (0)