Problem with query after upgrade from 5.43.00 to 5.44.02
Hello all,
Has there been any report of Linq2SQL issues related to the version upgrade mentioned in the subject? A query (admittedly fairly heinous) that worked fine in 5.43.00 now fails in 5.44.02.
I won't provide the whole query yet because it is huge, but the error is:
SqlException: The column 'Id' was specified multiple times for 't25'.
The column 'Id' was specified multiple times for 't27'.
When looking at the SQL, we can see syntax errors like this in it:
[t25].[[id]]2]
[t25].[[id]]3]
[t25].[[id]]4]
etc.
Thanks in advance for any help.
Simon
Comments
Can you provide the DDL for t25?
Can you let me know how to do that (sorry for my ignorance)?
From SQL Server Management Studio, right-click the table and choose 'Script table as create'
Hi Joe. Sorry for the slow response, I was trying to simplify the problem right down because the DDLs for our tables are very large (plus t25 in this case was a sub-query table).
The following query, using the two tables (both empty) shown in the comments at the top, works on 5.43.00 and fails on 5.44.02. Hopefully you can use it to recreate the problem yourself.
Note the case difference on the "id" column in table Example 2.
Here is the resultant query:
If the case is made to match in the underlying SQL table, the query then works (I've included that query also, so the differences are clear):
Joe, I should have dropped an extra note: the query in question that's failed is part of a critical business process. I'm not sure how easy a bug to fix this will be, but I'm worried it might be a problem and the next run of this process will be next week.
If it turns out the bug is a problem to solve and given this query works in Linqpad version
5.43.00
, would it be feasible for us to get access to a standalone copy of the older version? I've looked already but unfortunately there doesn't seem to be any means to access older versions of the app.Thanks again in advance,
Simon
Thanks for the repro. Try the latest beta and let me know if it fixes your problem:
https://www.linqpad.net/LINQPad5.aspx#beta
Many thanks Joe, that works! I imagine you already thought to try but to confirm: I did try the query in LinqPad 6 as well, which exhibited the same bug.
That's right: LINQPad 6 is affected as well. You'll see the fix in the next beta.
Hi Joe, we've been using the beta version for a while now when we need to run this particular script. Any plan to release this in a new official version of LinqPad 5? I imagine that you won't be intending to focus mainly on v7 etc., but we're still using .NET Framework DLLs so we're stuck on 5 for the time being.