Commit 869554d
Un-skip the 14 correlated queryable-function tests, and create what they need
Committed red on purpose, so the fix that follows is measured against a failing
suite rather than asserted.
All 14 carry [NotSupportedOnFirebirdFact]. The store supports every one of them;
only the generated SQL is malformed, which is #1277.
A correlated queryable function reaches the store as a LATERAL derived table, and
LATERAL is Firebird 4 and later, so both the tests and the objects they need are
gated on ServerLessThan4(). The gate is the same early return the Associations and
ComplexType tests here already use, behind one helper rather than repeated
fourteen times.
The fixture guard is required rather than tidy. "GetCustomerOrderCountByYearOnlyFrom2000"
is 39 characters and Firebird 3 caps identifiers at 31, so creating it there fails
the seed with "Name longer than database column size" and takes every test in the
class down with it, including ones that pass today.
That second gap was hidden behind the first. The fixture never created "AddValues",
"GetCustomerOrderCountByYear" or "GetCustomerOrderCountByYearOnlyFrom2000", and
nothing noticed, because every test that uses them was skipped. They are ported
from the definitions in EF Core's own UdfDbFunctionSqlServerTests fixture, in
Firebird form: the two table-valued ones become selectable procedures, as the two
already in this fixture are, and year(...) becomes extract(year from ...).
UdfDbFunctionFbTests on Firebird 5.0.3:
Passed 82 -> 84, Failed 0 -> 12, Skipped 24 -> 10, Total 106.
Twelve fail at the LATERAL source with the store's own parse error:
FbException: Dynamic SQL Error
Token unknown - line 3, column 14
Two pass with no product change at all, so their skips were already stale:
QF_Select_Correlated_Subquery_In_Anonymous
QF_Correlated_Func_Call_With_Navigation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 34acfda commit 869554d
1 file changed
Lines changed: 93 additions & 56 deletions
Lines changed: 93 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
47 | 43 | | |
48 | | - | |
| 44 | + | |
49 | 45 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 46 | + | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
59 | 53 | | |
60 | | - | |
| 54 | + | |
61 | 55 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 56 | + | |
65 | 57 | | |
66 | | - | |
| 58 | + | |
67 | 59 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 60 | + | |
71 | 61 | | |
72 | | - | |
| 62 | + | |
73 | 63 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 64 | + | |
77 | 65 | | |
78 | | - | |
| 66 | + | |
79 | 67 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 68 | + | |
83 | 69 | | |
84 | | - | |
| 70 | + | |
85 | 71 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 72 | + | |
89 | 73 | | |
90 | | - | |
| 74 | + | |
91 | 75 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 76 | + | |
95 | 77 | | |
96 | | - | |
| 78 | + | |
97 | 79 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 80 | + | |
101 | 81 | | |
102 | | - | |
| 82 | + | |
103 | 83 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 84 | + | |
107 | 85 | | |
108 | | - | |
| 86 | + | |
109 | 87 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 88 | + | |
113 | 89 | | |
114 | | - | |
| 90 | + | |
115 | 91 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 92 | + | |
119 | 93 | | |
120 | | - | |
| 94 | + | |
121 | 95 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 96 | + | |
125 | 97 | | |
126 | 98 | | |
127 | 99 | | |
| |||
217 | 189 | | |
218 | 190 | | |
219 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
220 | 201 | | |
221 | 202 | | |
222 | 203 | | |
| |||
349 | 330 | | |
350 | 331 | | |
351 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
352 | 389 | | |
353 | 390 | | |
354 | 391 | | |
| |||
0 commit comments