andialbrecht / sqlparse

A non-validating SQL parser module for Python
BSD 3-Clause "New" or "Revised" License
3.71k stars 693 forks source link

no parsing error for extra col in multiline insert? #723

Closed tooptoop4 closed 1 year ago

tooptoop4 commented 1 year ago

want this to fail as 4th column in 2nd row but only 3 cols in the values

INSERT INTO y.x (a,b,c) VALUES ('1','1','1'), ('1','1','1','1'), ('1','1','1');
andialbrecht commented 1 year ago

sqlparse is intentionally a non-validating parser