Bug #80127 | Linq with order by specific field and take or first fails | ||
---|---|---|---|
Submitted: | 23 Jan 2016 11:24 | Modified: | 24 Feb 2016 12:26 |
Reporter: | Juan Llanso | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 5.7.10-log | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | linq, orderby, take |
[23 Jan 2016 11:24]
Juan Llanso
[23 Jan 2016 12:24]
MySQL Verification Team
I wonder if this could this be same as: http://bugs.mysql.com/bug.php?id=79549 (Regression: “unknown column” for outer computed values used inside a subquery)?
[23 Jan 2016 13:27]
Juan Llanso
Hello, thank you for the quick answer. I don't know if it is the same issue, but our problem is, different from that post, we are not generating the SQL, EF6 is generating the SQL query from our LINQ query. Is there maybe a configuration file where we can change a parameter to fix this? Thanks.
[23 Jan 2016 19:26]
MySQL Verification Team
Please provide a complete test case (create table, etc) so we can run the query or wait the next release. Thanks.
[23 Jan 2016 19:41]
Juan Llanso
I do have the Entities...but please let me know if you need another thing public class Link : EntityBase { public int OrderPos { get; set; } public string Url { get; set; } public bool Active { get; set; } public virtual IEnumerable<LinkTr> Translations { get; set; } } public class LinkTr : EntityBaseTr { public string Name { get; set; } public string Summary { get; set; } //[ForeignKey("Link")] public int LinkId { get; set; } public virtual Link Link { get; set; } //[ForeignKey("Language")] public string LanguageCode { get; set; } public virtual Language Languages { get; set; } } public class EntityBase { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] //[Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public int Id { get; set; } public DateTime? DateCreated { get; set; } public DateTime? DateModified { get; set; } public int UserIdModified { get; set; } } public class EntityBaseTr { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public DateTime? DateCreated { get; set; } }
[24 Jan 2016 12:26]
MySQL Verification Team
Thank you for the feedback. Sorry if I wasn't clear I meant a test case a SQL script which can be run using the mysql.exe client, the test case should have the create table(s) statements, insert data if needed and the offended query. Thanks.
[25 Feb 2016 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".