-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Current behavior
- Select SQL format action
- At this stage, SQL Dialect is greyed out
- Enter valid T-SQL code
- Error - not a valid code in default dialect
- SQL Dialect is greyed out (due to an error, presumably)
- Clear your input, enter valid code for default dialect
- Change the dialect to T-SQL
- Clear input and enter the T-SQL code
- Output is not formatted T-SQL code
Likewise, inserting functional code and changing dialect which causes parse error will lock user out of the dialect change:

Expected behavior
It should be possible to change the dialect on parse error, considering the target dialect may not result in an error.
Alternatively, it should be possible to change dialect while the input is blank.
Preferrably both.
Environment
- string-is version: v1.37.3 027b426
- Share link: please use below examples
Example code
- Valid SQL:
select yourfield - Valid T-SQL but invalid SQL:
select [yourfield]
Metadata
Metadata
Assignees
Labels
No labels