We updated Entity Framework to 6.1.3, since then on some servers (sadly the ones that run the unit tests), we get now the exception:
System.Data.SqlClient.SqlException: Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries.
on some EF queries that aren't that deep nested.
When we changed EF versions we made other changes, but none of these seem to have influenced the unit tests. The service that uses these queries wasn't changed at all.
I didn't find any condition in the environment for this exception, and I kinda can't believe it happens because of the EF update. Are there more influences that could cause this exception?
Edit: I just extracted the query and ran it on one of the failing servers, which is working funnily enough. So I guess it has to be EF?