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

SQL formatter issue with REAL keyword #5234

Open
pawelsalawa opened this issue Jan 28, 2025 · 0 comments
Open

SQL formatter issue with REAL keyword #5234

pawelsalawa opened this issue Jan 28, 2025 · 0 comments

Comments

@pawelsalawa
Copy link
Owner

I have encountered another issue with "Format SQL" feature. Consider the following statement with a generated column:

CREATE TABLE products(
    name TEXT NOT NULL,
    price REAL NOT NULL,
    discount REAL NOT NULL,
    tax REAL NOT NULL,
    net_price REAL GENERATED ALWAYS 
        AS (price * (1-discount) * (1+tax))
);

Clicking "Format SQL" once surrounds the REAL after net_price with []. Pressing it again surrounds that with "" and so forth (press it 4 times).

Why is this quoting done?

Best regards!

Originally posted by @john-black-3k in #5225 (comment)

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

1 participant