• Peter Eisentraut's avatar
    Fix bug in support for collation attributes on older ICU versions · 1f050c08
    Peter Eisentraut authored
    Unrecognized attribute names are supposed to be ignored.  But the code
    would error out on an unrecognized attribute value even if it did not
    recognize the attribute name.  So unrecognized attributes wouldn't
    really be ignored unless the value happened to be one that matched a
    recognized value.  This would break some important cases where the
    attribute would be processed by ucol_open() directly.  Fix that and
    add a test case.
    
    The restructured code should also avoid compiler warnings about
    initializing a UColAttribute value to -1, because the type might be an
    unsigned enum.  (reported by Andres Freund)
    1f050c08
collate.icu.utf8.sql 15.4 KB