Skip to content

Commit 3b3b45a

Browse files
MaceWinduAzure Pipelines Bot
authored andcommitted
unreviewed
1 parent fe1d6f9 commit 3b3b45a

File tree

428 files changed

+4793
-6330
lines changed

Some content is hidden

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

428 files changed

+4793
-6330
lines changed

Access.Ace.Odbc.LinqService/Tests/Linq/FSharpTests/Tests.Linq.FSharpTests.Issue1813Test2(Access.Ace.Odbc.LinqService).sql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,10 @@ SELECT
6060
[d].[Id],
6161
[d].[Text]
6262
FROM
63-
(
64-
SELECT DISTINCT
65-
[Item1].[Id]
66-
FROM
67-
[Names] [Item1]
68-
) [m_1]
63+
[Names] [m_1]
6964
INNER JOIN [Addresses] [d] ON ([m_1].[Id] = [d].[Id])
65+
ORDER BY
66+
[m_1].[Id]
7067

7168
BeforeExecute
7269
-- Access.Ace.Odbc AccessODBC (asynchronously)

Access.Ace.Odbc.LinqService/Tests/Linq/JoinTests/Tests.Linq.JoinTests.Issue1455Test1(Access.Ace.Odbc.LinqService).sql

Lines changed: 49 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,23 @@ DECLARE @cpty NVarChar(3) -- String
5050
SET @cpty = '%C%'
5151

5252
SELECT
53-
[al_group_2].[AlertKey],
54-
[al_group_2].[AlertCode],
53+
[al_group_2].[Id],
5554
(
5655
SELECT TOP 1
5756
IIF([t1].[MAX_1] IS NULL, [t1].[CreationDate], [t1].[MAX_1])
5857
FROM
5958
((
6059
SELECT
61-
[al_group_3].[AlertKey],
62-
[al_group_3].[AlertCode],
60+
[al_group_3].[Id],
61+
MAX([au_1].[TransactionDate]) as [MAX_1],
6362
[al_group_3].[CreationDate],
64-
MAX([au_1].[TransactionDate]) as [MAX_1]
63+
[al_group_3].[AlertKey],
64+
[al_group_3].[AlertCode]
6565
FROM
6666
[Alert] [al_group_3]
6767
LEFT JOIN [AuditAlert] [au_1] ON ([au_1].[AlertKey] = [al_group_3].[AlertKey])
6868
GROUP BY
69+
[al_group_3].[Id],
6970
[al_group_3].[AlertKey],
7071
[al_group_3].[AlertCode],
7172
[al_group_3].[CreationDate]
@@ -74,24 +75,24 @@ SELECT
7475
LEFT JOIN [Nomin] [nomin_2] ON ([t1].[AlertKey] = CStr([nomin_2].[CargoId]))
7576
WHERE
7677
([nomin_2].[DeliveryCounterParty] LIKE ? OR [trade_2].[CounterParty] LIKE ? OR [t1].[AlertCode] LIKE ?) AND
77-
[al_group_2].[AlertKey] = [t1].[AlertKey] AND
78-
[al_group_2].[AlertCode] = [t1].[AlertCode] AND
79-
[al_group_2].[CreationDate] = [t1].[CreationDate]
78+
[al_group_2].[Id] = [t1].[Id]
8079
),
8180
(
8281
SELECT TOP 1
8382
[nomin_3].[CargoId]
8483
FROM
8584
((
8685
SELECT
87-
[al_group_4].[AlertKey],
88-
[al_group_4].[AlertCode],
86+
[al_group_4].[Id],
87+
MAX([au_2].[TransactionDate]) as [MAX_1],
8988
[al_group_4].[CreationDate],
90-
MAX([au_2].[TransactionDate]) as [MAX_1]
89+
[al_group_4].[AlertKey],
90+
[al_group_4].[AlertCode]
9191
FROM
9292
[Alert] [al_group_4]
9393
LEFT JOIN [AuditAlert] [au_2] ON ([au_2].[AlertKey] = [al_group_4].[AlertKey])
9494
GROUP BY
95+
[al_group_4].[Id],
9596
[al_group_4].[AlertKey],
9697
[al_group_4].[AlertCode],
9798
[al_group_4].[CreationDate]
@@ -100,24 +101,24 @@ SELECT
100101
LEFT JOIN [Nomin] [nomin_3] ON ([t2].[AlertKey] = CStr([nomin_3].[CargoId]))
101102
WHERE
102103
([nomin_3].[DeliveryCounterParty] LIKE ? OR [trade_3].[CounterParty] LIKE ? OR [t2].[AlertCode] LIKE ?) AND
103-
[al_group_2].[AlertKey] = [t2].[AlertKey] AND
104-
[al_group_2].[AlertCode] = [t2].[AlertCode] AND
105-
[al_group_2].[CreationDate] = [t2].[CreationDate]
104+
[al_group_2].[Id] = [t2].[Id]
106105
),
107106
(
108107
SELECT TOP 1
109108
[nomin_4].[DeliveryId]
110109
FROM
111110
((
112111
SELECT
113-
[al_group_5].[AlertKey],
114-
[al_group_5].[AlertCode],
112+
[al_group_5].[Id],
113+
MAX([au_3].[TransactionDate]) as [MAX_1],
115114
[al_group_5].[CreationDate],
116-
MAX([au_3].[TransactionDate]) as [MAX_1]
115+
[al_group_5].[AlertKey],
116+
[al_group_5].[AlertCode]
117117
FROM
118118
[Alert] [al_group_5]
119119
LEFT JOIN [AuditAlert] [au_3] ON ([au_3].[AlertKey] = [al_group_5].[AlertKey])
120120
GROUP BY
121+
[al_group_5].[Id],
121122
[al_group_5].[AlertKey],
122123
[al_group_5].[AlertCode],
123124
[al_group_5].[CreationDate]
@@ -126,24 +127,24 @@ SELECT
126127
LEFT JOIN [Nomin] [nomin_4] ON ([t3].[AlertKey] = CStr([nomin_4].[CargoId]))
127128
WHERE
128129
([nomin_4].[DeliveryCounterParty] LIKE ? OR [trade_4].[CounterParty] LIKE ? OR [t3].[AlertCode] LIKE ?) AND
129-
[al_group_2].[AlertKey] = [t3].[AlertKey] AND
130-
[al_group_2].[AlertCode] = [t3].[AlertCode] AND
131-
[al_group_2].[CreationDate] = [t3].[CreationDate]
130+
[al_group_2].[Id] = [t3].[Id]
132131
),
133132
(
134133
SELECT TOP 1
135134
[nomin_5].[DeliveryCounterParty]
136135
FROM
137136
((
138137
SELECT
139-
[al_group_6].[AlertKey],
140-
[al_group_6].[AlertCode],
138+
[al_group_6].[Id],
139+
MAX([au_4].[TransactionDate]) as [MAX_1],
141140
[al_group_6].[CreationDate],
142-
MAX([au_4].[TransactionDate]) as [MAX_1]
141+
[al_group_6].[AlertKey],
142+
[al_group_6].[AlertCode]
143143
FROM
144144
[Alert] [al_group_6]
145145
LEFT JOIN [AuditAlert] [au_4] ON ([au_4].[AlertKey] = [al_group_6].[AlertKey])
146146
GROUP BY
147+
[al_group_6].[Id],
147148
[al_group_6].[AlertKey],
148149
[al_group_6].[AlertCode],
149150
[al_group_6].[CreationDate]
@@ -152,24 +153,24 @@ SELECT
152153
LEFT JOIN [Nomin] [nomin_5] ON ([t4].[AlertKey] = CStr([nomin_5].[CargoId]))
153154
WHERE
154155
([nomin_5].[DeliveryCounterParty] LIKE ? OR [trade_5].[CounterParty] LIKE ? OR [t4].[AlertCode] LIKE ?) AND
155-
[al_group_2].[AlertKey] = [t4].[AlertKey] AND
156-
[al_group_2].[AlertCode] = [t4].[AlertCode] AND
157-
[al_group_2].[CreationDate] = [t4].[CreationDate]
156+
[al_group_2].[Id] = [t4].[Id]
158157
),
159158
(
160159
SELECT TOP 1
161160
[trade_6].[DealId]
162161
FROM
163162
((
164163
SELECT
165-
[al_group_7].[AlertKey],
166-
[al_group_7].[AlertCode],
164+
[al_group_7].[Id],
165+
MAX([au_5].[TransactionDate]) as [MAX_1],
167166
[al_group_7].[CreationDate],
168-
MAX([au_5].[TransactionDate]) as [MAX_1]
167+
[al_group_7].[AlertKey],
168+
[al_group_7].[AlertCode]
169169
FROM
170170
[Alert] [al_group_7]
171171
LEFT JOIN [AuditAlert] [au_5] ON ([au_5].[AlertKey] = [al_group_7].[AlertKey])
172172
GROUP BY
173+
[al_group_7].[Id],
173174
[al_group_7].[AlertKey],
174175
[al_group_7].[AlertCode],
175176
[al_group_7].[CreationDate]
@@ -178,24 +179,24 @@ SELECT
178179
LEFT JOIN [Nomin] [nomin_6] ON ([t5].[AlertKey] = CStr([nomin_6].[CargoId]))
179180
WHERE
180181
([nomin_6].[DeliveryCounterParty] LIKE ? OR [trade_6].[CounterParty] LIKE ? OR [t5].[AlertCode] LIKE ?) AND
181-
[al_group_2].[AlertKey] = [t5].[AlertKey] AND
182-
[al_group_2].[AlertCode] = [t5].[AlertCode] AND
183-
[al_group_2].[CreationDate] = [t5].[CreationDate]
182+
[al_group_2].[Id] = [t5].[Id]
184183
),
185184
(
186185
SELECT TOP 1
187186
[trade_7].[ParcelId]
188187
FROM
189188
((
190189
SELECT
191-
[al_group_8].[AlertKey],
192-
[al_group_8].[AlertCode],
190+
[al_group_8].[Id],
191+
MAX([au_6].[TransactionDate]) as [MAX_1],
193192
[al_group_8].[CreationDate],
194-
MAX([au_6].[TransactionDate]) as [MAX_1]
193+
[al_group_8].[AlertKey],
194+
[al_group_8].[AlertCode]
195195
FROM
196196
[Alert] [al_group_8]
197197
LEFT JOIN [AuditAlert] [au_6] ON ([au_6].[AlertKey] = [al_group_8].[AlertKey])
198198
GROUP BY
199+
[al_group_8].[Id],
199200
[al_group_8].[AlertKey],
200201
[al_group_8].[AlertCode],
201202
[al_group_8].[CreationDate]
@@ -204,24 +205,24 @@ SELECT
204205
LEFT JOIN [Nomin] [nomin_7] ON ([t6].[AlertKey] = CStr([nomin_7].[CargoId]))
205206
WHERE
206207
([nomin_7].[DeliveryCounterParty] LIKE ? OR [trade_7].[CounterParty] LIKE ? OR [t6].[AlertCode] LIKE ?) AND
207-
[al_group_2].[AlertKey] = [t6].[AlertKey] AND
208-
[al_group_2].[AlertCode] = [t6].[AlertCode] AND
209-
[al_group_2].[CreationDate] = [t6].[CreationDate]
208+
[al_group_2].[Id] = [t6].[Id]
210209
),
211210
(
212211
SELECT TOP 1
213212
[trade_8].[CounterParty]
214213
FROM
215214
((
216215
SELECT
217-
[al_group_9].[AlertKey],
218-
[al_group_9].[AlertCode],
216+
[al_group_9].[Id],
217+
MAX([au_7].[TransactionDate]) as [MAX_1],
219218
[al_group_9].[CreationDate],
220-
MAX([au_7].[TransactionDate]) as [MAX_1]
219+
[al_group_9].[AlertKey],
220+
[al_group_9].[AlertCode]
221221
FROM
222222
[Alert] [al_group_9]
223223
LEFT JOIN [AuditAlert] [au_7] ON ([au_7].[AlertKey] = [al_group_9].[AlertKey])
224224
GROUP BY
225+
[al_group_9].[Id],
225226
[al_group_9].[AlertKey],
226227
[al_group_9].[AlertCode],
227228
[al_group_9].[CreationDate]
@@ -230,38 +231,32 @@ SELECT
230231
LEFT JOIN [Nomin] [nomin_8] ON ([t7].[AlertKey] = CStr([nomin_8].[CargoId]))
231232
WHERE
232233
([nomin_8].[DeliveryCounterParty] LIKE ? OR [trade_8].[CounterParty] LIKE ? OR [t7].[AlertCode] LIKE ?) AND
233-
[al_group_2].[AlertKey] = [t7].[AlertKey] AND
234-
[al_group_2].[AlertCode] = [t7].[AlertCode] AND
235-
[al_group_2].[CreationDate] = [t7].[CreationDate]
234+
[al_group_2].[Id] = [t7].[Id]
236235
)
237236
FROM
238237
(
239238
SELECT
240-
[al_group_1].[AlertKey],
241-
[al_group_1].[AlertCode],
242-
[al_group_1].[CreationDate]
239+
[al_group_1].[Id]
243240
FROM
244241
((
245242
SELECT
243+
[al_group].[Id],
246244
[al_group].[AlertKey],
247-
[al_group].[AlertCode],
248-
[al_group].[CreationDate]
245+
[al_group].[AlertCode]
249246
FROM
250247
[Alert] [al_group]
251248
LEFT JOIN [AuditAlert] [au] ON ([au].[AlertKey] = [al_group].[AlertKey])
252249
GROUP BY
250+
[al_group].[Id],
253251
[al_group].[AlertKey],
254-
[al_group].[AlertCode],
255-
[al_group].[CreationDate]
252+
[al_group].[AlertCode]
256253
) [al_group_1]
257254
LEFT JOIN [Trade] [trade_1] ON ([al_group_1].[AlertKey] = CStr([trade_1].[DealId])))
258255
LEFT JOIN [Nomin] [nomin_1] ON ([al_group_1].[AlertKey] = CStr([nomin_1].[CargoId]))
259256
WHERE
260257
[nomin_1].[DeliveryCounterParty] LIKE ? OR [trade_1].[CounterParty] LIKE ? OR
261258
[al_group_1].[AlertCode] LIKE ?
262259
GROUP BY
263-
[al_group_1].[AlertKey],
264-
[al_group_1].[AlertCode],
265-
[al_group_1].[CreationDate]
260+
[al_group_1].[Id]
266261
) [al_group_2]
267262

0 commit comments

Comments
 (0)