Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1263

Case-insensitive match and null default value for enum properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.9.0
    • avatica
    • None

    Description

      In ConnectionConfigImpl, we allow properties based on enum classes. The getEnum method throws "Required property 'name' not specified" if the default value is null, but it should not; we should allow enum properties whose default value is null.

      Also, when resolving an enum property we should check the exact string first, then look for case-insensitive matches. This will help if people write 'p=foo' if 'p' is a property of type enum { FOO, BAZ }.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: