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

Some identifiers get converted to uppercase with keywordCase:upper

Open krishnagogada opened this issue 1 year ago • 3 comments

Input data

Which SQL and options did you provide as input?

create table player_match_details(
  name varchar(150),
  match varchar(150),
  score int
);

Expected Output

CREATE TABLE player_match_details(
  name varchar(150),
  match varchar(150),
  score int
);

Actual Output

CREATE TABLE player_match_details(
  name varchar(150),
  MATCH varchar(150),
  score int
);

Usage

  • How are you calling / using the library?
import { format } from 'sql-formatter';
  • What SQL language(s) does this apply to?
  {
      language: 'sql',
      indent: '',
      uppercase: true,
      linesBetweenQueries: 2
   }
  • Which SQL Formatter version are you using? 15.3.1

krishnagogada avatar May 09 '24 12:05 krishnagogada