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

First letter of table name is missing when highlighting query #589

Open
liviuconcioiu opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@liviuconcioiu
Copy link
Contributor

liviuconcioiu commented Oct 15, 2024

PS Z:\GitHub\sql-parser> php ./bin/sql-parser --highlight --query "SELECT * FROM `test` WHERE `col` = 1"       
SELECT
    *
FROM
    est
WHERE
    col = 1
@niconoe-
Copy link
Contributor

This probably comes from your CLI interpretor, as strings into double-quotes are interpolated, and strings into back-quotes are sub commands.

I tested with double-quotes wrapping query without back-quotes for symbol identifiers and with single-quotes wrapping query with back-quotes (not interpolated then), and it worked as expected:

image

image

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

No branches or pull requests

2 participants