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

.NET: LINQ Conditional statement will fail for some types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.1
    • platforms

    Description

      Next code will fail:

      var res = persons.Select(x => new {Foo = x.Key%2 == 0 ? 1 : (int?)null, x.Value}).ToArray();
      

      Fix: strip nullable type in SqlTypes

      Attachments

        Issue Links

          Activity

            People

              gurustron Sergey Stronchinskiy
              gurustron Sergey Stronchinskiy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: