Skip to content

[BUG] JSQLParser Version : 4.7 : sqlserver insert bulk sql failed! #2033

Description

@jisongxi

maven dependence:

com.github.jsqlparser jsqlparser 4.7

sqlServer sql:

insert bulk tpch.dbo.order_line([ol_o_id] int,[ol_d_id] tinyint,[ol_w_id] int,[ol_number] tinyint,[ol_i_id] int, [ol_delivery_d] datetime,[ol_amount] smallmoney,[ol_supply_w_id] int,[ol_quantity] smallint,[ol_dist_info] char(24) collate Chinese_PRC_CI_AS)with(ROWS_PER_BATCH=500000)

Failing SQL Feature:

sqlserver insert bulk ` can't be parsed

Software Information:

image

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "." "."
at line 1, column 17.

Was expecting one of:

"("
"OUTPUT"
"SET"
"VALUE"
"VALUES"
"WITH"
<K_SELECT>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions