sql-formatter-org / sql-formatter-org/sql-formatter
Some identifiers get converted to uppercase with keywordCase:upper
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 456
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are identified in the issue. Start by reproducing the supplied CREATE TABLE example with the SQL formatter and its uppercase/keywordCase options, then trace the formatting path that changes MATCH while preserving the other identifiers. Done means the expected output is produced without uppercasing the column name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100