Skip to content

fmt044_insert_column_list_start_parenthesis_in_newline is ignored #10

@akinet

Description

@akinet

If I set fmt044_insert_column_list_start_parenthesis_in_newline to false I expect to have output of this kind:

INSERT INTO SALES.saleshistory (salesorderid,
                                salesorderdetailid,
                                carriertrackingnumber,
                                modifieddate)                   
SELECT * 
FROM SALES.salesorderdetail;

but I am receiving this:

INSERT INTO SALES.saleshistory
            (salesorderid,
             salesorderdetailid,
             carriertrackingnumber,
             modifieddate)
SELECT *
FROM   SALES.salesorderdetail; 

Example in https://github.com/sqlparser/sql-pretty-printer/wiki/Insert-statement shows that combination of options:

  • fmt040_insert_column_list_style = stacked
  • fmt044_insert_column_list_start_parenthesis_in_newline = false
  • fmt048_insert_column_list_first_column_in_newline = false

generates the output I am expecting.

What is wrong? Is there any other option I need to set to get the expected output?
Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions