Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The function `has` or `list` doesn't work.
SQL model element 'col:num' cannot be detected with such definition
- "^{id() == 'col' && has(list(4, 8), meta_part(find_part(token(), 'colName'), 'sql:datatype'))}^"
but if we change it to equal clause without `has` and 'list'
- "^{id() == 'col' && (meta_part(find_part(token(), 'colName'), 'sql:datatype') == 8 || meta_part(find_part(token(), 'colName'), 'sql:datatype') == 4)}^"
it works for both NCSqlModelSpec and NCSqlExampleSpec