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

.NET: SQL does not work with F# record types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7
    • 2.0
    • platforms

    Description

      The following code returns null results:

      type Person = 
          { 
              [<QuerySqlField>]
              id : int; 
              [<QuerySqlField>]
              name : String 
          }
      
      ...
      
      cache.QueryFields(new SqlFieldsQuery("from person select id")).GetAll()
      

      F# record fields have @ symbol in the end. We should clean up or escape these.

      Person [idHash=59332389, id@=1, name@=John]

      Make sure other F#-specific types do not cause problems (tuples, structs, classes, nested types).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: