You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When showing objects that reference a measure with a name that contains an apostrophe ' (Char 39), the generated SQL does not escape the apostrophe, causing a syntax error.
To Reproduce
Steps to reproduce the behavior:
Create a measure in your model with a name like 'Measure
Right-click on the measure in the Metadata pane, and select "Show Objects That Reference Measure"
The query will run and result in a syntax error on the WHERE [REFERENCED_OBJECT] = ''Measure' line
Expected behavior
No syntax error should result, and referenced objects should be be found: i.e. the generated query should escape the ', so it would read ... = '''Measure'.
Screenshots
Additional context
DAX Studio: 3.0.8 (2023-07-03)
The text was updated successfully, but these errors were encountered:
Describe the bug
When showing objects that reference a measure with a name that contains an apostrophe
'
(Char 39), the generated SQL does not escape the apostrophe, causing a syntax error.To Reproduce
Steps to reproduce the behavior:
'Measure
WHERE [REFERENCED_OBJECT] = ''Measure'
lineExpected behavior
No syntax error should result, and referenced objects should be be found: i.e. the generated query should escape the
'
, so it would read... = '''Measure'
.Screenshots
Additional context
DAX Studio: 3.0.8 (2023-07-03)
The text was updated successfully, but these errors were encountered: