Bug #69922 | Unknown column Extent1... | ||
---|---|---|---|
Submitted: | 4 Aug 2013 10:16 | Modified: | 24 Sep 2014 23:32 |
Reporter: | John Korres | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.7.4.0 | OS: | Windows |
Assigned to: | Fernando Gonzalez.Sanchez | CPU Architecture: | Any |
[4 Aug 2013 10:16]
John Korres
[31 Aug 2013 13:29]
Sam Kelleher
To extend this reports, checking for IS NULL on a column of *any* type, not just datetime, will cause this error, because it is looking for a non-existent Extent1 rather than Project1.
[25 Oct 2013 1:37]
Sam Kelleher
I downgraded to 6.6.5 and this problem went away. Even using 6.8.0 still exhibits the 'Unknown Column' for Extent1 in quite a few circumstances, such as checking for null, using a datetime field in a where clause, using a subquery (.Any()) or using an OrderBy over a query. Following upgrading the dev machine to Windows 8.1, Connector 6.6.5 isn't available to download. Running 6.6.6 exhibits the same problem. TIP: I recovered the 6.6.5 dlls from another machine and used these manually and everything is working again. So it appears that the issue was introduced between 6.6.5 > 6.6.6.
[25 Oct 2013 22:05]
Fernando Gonzalez.Sanchez
Hi Sam, Thanks for the feedback, the fix for 69922 for the test case in the bug report was released in 6.6.6 & 6.8.0. It seems it still fails in other scenarios, I'll check them. Meanwhile can you provide sample queries for the Any / OrderBy cases? thanks.
[3 Mar 2014 22:56]
Daniel So
Added the following entry into the Connector/Net 6.6.7, 6.7.5, 6.8.4 changelogs: "When using the Code First approach in Entity Framework 5, a LINQ query that checked whether a nullable column was null resulted in a faulty SQL query being generated."