Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FORMATTING] Formatter15.4.11 inserts space in between # operator in mysql dialect #835

Open
laoli1968 opened this issue Mar 4, 2025 · 1 comment
Labels

Comments

@laoli1968
Copy link

Input data

Which SQL and options did you provide as input?

select con#,obj#,rcon#,enabled,nvl(defer,0),spare2,spare3,refact from cdef$ where robj#=:1 for update

Expected Output

select con#,obj#,rcon#,enabled,nvl(defer,0),spare2,spare3,refact from cdef$ where robj#=:1 for update

Actual Output

select con #,obj#,rcon#,enabled,nvl(defer,0),spare2,spare3,refact from cdef$ where robj#=:1 for update

Usage

  • How are you calling / using the library?
  • What SQL language(s) does this apply to?
  • Which SQL Formatter version are you using?
@laoli1968 laoli1968 added the bug label Mar 4, 2025
@nene
Copy link
Collaborator

nene commented Mar 4, 2025

This is as expected because # character starts a comment in MySQL.

MySQL documentation for identifiers also doesn't include # character as being allowed in unquoted identifiers.

Are you actually using MySQL? Or are you attempting to format some other SQL dialect as MySQL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants