sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

Column: ENDDATE is formatted wrongly

Open Royvhorck1 opened this issue 8 years ago • 6 comments

I have a problem while formatting a column called ENDDATE where the formatter will add a space between the 2 words resulting in an invalid sql query.

To recreate problem, try it out in demo at: https://zeroturnaround.github.io/sql-formatter/

Input: SELECT ENDDATE from table1

Will result in: SELECT END DATE from table1

Royvhorck1 avatar May 08 '18 09:05 Royvhorck1

@Royvhorck1 could you provide the query that you are formatting? Also which SQL dialect are you using?

andrestaht avatar May 08 '18 09:05 andrestaht

@andrestaht I have added an example. I am using regular SQL format

Royvhorck1 avatar May 08 '18 09:05 Royvhorck1

Thanks, @Royvhorck1! Will have a look at this soon.

andrestaht avatar May 08 '18 09:05 andrestaht

@andrestaht Thanks!

Royvhorck1 avatar May 08 '18 09:05 Royvhorck1

Thanks, that was a genuine regression, introduced by the previous version.

Fixed in version 2.3.1.

Thanks for reporting!

nene avatar May 08 '18 11:05 nene

No problem. thnx for the fix!

Royvhorck1 avatar May 08 '18 11:05 Royvhorck1