jetstreamapp / soql-parser-js

Javascript SOQL parser
https://jetstreamapp.github.io/soql-parser-js/
MIT License
77 stars 20 forks source link

typeof query is ignored from getFlattenedFields() #115

Closed paustint closed 3 years ago

paustint commented 4 years ago

Description

SELECT Id,
    TYPEOF What
        WHEN Account THEN Id, Phone
        ELSE Id, Name
    END
FROM Event

getFlattenedFields(parsedQuery);

expected: ['Id', 'What.Id', 'What.Phone', 'What.Name']

actual: ['Id']

paustint commented 2 years ago

confirmed issue no longer exists