Exception "OUTER APPLY is not supported by SQLite" in 5.17.1905
Posted: Tue 24 Aug 2021 13:33
Hi,
we updated from 5.17.1782 to 5.17.1905 recently, now we're running into an exception with unchanged code that never occurred before.
The exception is:
System.Data.Entity.Core.EntityCommandCompilationException:
OUTER APPLY is not supported by SQLite.
The query is simple but tries to fetch data from a lot of tables like this (each related entity lives in its own table)
ctx.Set<A>()
.Include(t => t.ChildrenB)
.Include(t => t.ChildrenC)
.Include(t => t.ChildrenD)
.Include(t => t.ChildrenE)
.Include(t => t.ChildrenF)
.Include( ..... )
.Load()
Is there any known bug that could cause this?
Was the way dotConnect constructs a SQL query out that queryable change recently?
IMHO dotConnect shouldn't in the first place even try to construct a select using something that SQLite doesn't support.
By reducing the number of Includes the exception disappears, but performance of the application suffers.
Strangely, if the exception occurrs also depends on database contents, it's unclear though in what way.
Any help is welcome.
NB: we are a licensed customer with an active subscription.
we updated from 5.17.1782 to 5.17.1905 recently, now we're running into an exception with unchanged code that never occurred before.
The exception is:
System.Data.Entity.Core.EntityCommandCompilationException:
OUTER APPLY is not supported by SQLite.
The query is simple but tries to fetch data from a lot of tables like this (each related entity lives in its own table)
ctx.Set<A>()
.Include(t => t.ChildrenB)
.Include(t => t.ChildrenC)
.Include(t => t.ChildrenD)
.Include(t => t.ChildrenE)
.Include(t => t.ChildrenF)
.Include( ..... )
.Load()
Is there any known bug that could cause this?
Was the way dotConnect constructs a SQL query out that queryable change recently?
IMHO dotConnect shouldn't in the first place even try to construct a select using something that SQLite doesn't support.
By reducing the number of Includes the exception disappears, but performance of the application suffers.
Strangely, if the exception occurrs also depends on database contents, it's unclear though in what way.
Any help is welcome.
NB: we are a licensed customer with an active subscription.