Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13754

.NET: LINQ provider emits incorrect table alias for queries with JOIN and GROUP BY combined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.10
    • platforms
    • .NET: Fix LINQ to SQL translation for queries with JOIN and GROUP BY combined

    Description

      See the attached reproducer. Generated SQL is:

      select _T0.MEETINGID, max (_T0.AttachmentDate)  from USERSCHEMA.MEETING as _T0 inner join USERSCHEMA.MEETINGATTACHMENT as _T1 on (_T1.MEETINGID = _T0.MEETINGID) group by (_T0.MEETINGID)
      

      _T0.AttachmentDate should be _T1.AttachmentDate here.

      Attachments

        1. Program.cs
          3 kB
          Pavel Tupitsyn
        2. MeetingAttachment.cs
          0.5 kB
          Pavel Tupitsyn
        3. Meeting.cs
          0.3 kB
          Pavel Tupitsyn

        Activity

          People

            ptupitsyn Pavel Tupitsyn
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m