Skip to content

Problem with $p() syntax in SQLite #943

@andrewbaxter

Description

@andrewbaxter

Input data

Which SQL and options did you provide as input?

select $p(x=y);

Expected Output

select $p(x=y);

Actual Output

select $p (x=y);

Usage

  • How are you calling / using the library?
    cli
  • What SQL language(s) does this apply to?
    sqlite
  • Which SQL Formatter version are you using? (The exact version number.)
    15.6.10

I'm not 100% sure but I think in the tcl $() param syntax sqlite supports requires the variable name and following parens to be touching (no space). At least, from manual testing in the cli that seemed to be the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions