JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

Fix parsing `ALTER TABLE ... ADD COLUMNS (...)`

Open njaremko opened this issue 1 year ago • 1 comments

The current behaviour fails when it encounters ADD COLUMNS and merges everything in the () into one string with no whitespace.

So ALTER TABLE catalog.table.name ADD COLUMNS (apples int) becomes ALTER TABLE catalog.table.name ADD COLUMNS (applesint).

This commit adds an understanding of ALTER TABLE ... ADD COLUMNS to the grammar.

njaremko avatar Oct 15 '24 19:10 njaremko