Skip to content

Support SQL Server INSERT BULK declarations - #2591

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/sqlserver-insert-bulk
Sep 11, 2026
Merged

Support SQL Server INSERT BULK declarations#2591
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/sqlserver-insert-bulk

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Fixes #2033.

Parse SQL Server INSERT BULK declarations with a target table, typed columns, optional collation and driver-generated bulk options. InsertBulk exposes column definitions, flags, ROWS_PER_BATCH values and ORDER elements; shared rendering and traversal support AST edits, custom deparsers, table discovery, statement analysis and capability validation. Recognition is scoped to Dialect.SQLSERVER.

Validation: full Gradle check and Maven verify passed, including the original ten-column example, driver options, mutable ASTs, visitors, dialect isolation, statement boundaries and malformed declarations. The bulk data stream itself is outside SQL parsing.

Reference: Microsoft's JDBC driver createInsertBulkCommand.

@minleejae
minleejae force-pushed the feat/sqlserver-insert-bulk branch 2 times, most recently from cd406cd to 9feee15 Compare September 11, 2026 15:54
@manticore-projects

Copy link
Copy Markdown
Contributor

Please resolve conflicts, thank you!

@minleejae
minleejae force-pushed the feat/sqlserver-insert-bulk branch from 9feee15 to 1c6d0f0 Compare September 11, 2026 18:02
@manticore-projects
manticore-projects merged commit bf2c9ac into JSQLParser:master Sep 11, 2026
9 checks passed
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

Successfully merging this pull request may close these issues.

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

2 participants