-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite: Unable to handle Take nested in Select #21078
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
|
@maumar - Looking at the query, it should get converted to JOIN rather than APPLY. |
I got an issue that may be related to this one. The interesting thing is, that it only occurs on Windows, not on MacOS.
The selection of |
Related #24474 |
maumar
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Sep 1, 2021
maumar
added a commit
that referenced
this issue
Sep 2, 2021
maumar
added a commit
that referenced
this issue
Sep 2, 2021
maumar
added a commit
that referenced
this issue
Sep 2, 2021
maumar
added a commit
that referenced
this issue
Sep 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Using
Take
nested in a select with a one-to-many relationship generates invalid SQL for SQLite.To Reproduce
I have two classes:
A
andB
with a one-to-many relationship. E.g.:The
DbContext
class contains the following:A database table exists for each entity.
I then execute the following query:
, where
n
is an integer.With SQLServer, everything works fine. However, when running the query in unit tests (SQLite), I get the following error:
Note
It manages to generate SQL, but the SQL seems to be invalid for SQLite.
Additional context
Microsoft.Data.Sqlite version: 3.1.4
Target framework: .NET Core 3.1
Operating system: Windows 10 Pro.
The text was updated successfully, but these errors were encountered: