You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the following test does not pass. I would expect this to work.
use sqlparser::*;#[test]fnfunc(){let stmt = "ALTER TABLE table_name DROP CONSTRAINT constr_name;";let x = parser::Parser::parse_sql(&dialect::GenericDialect{}, stmt);dbg!(x).unwrap();}
(Also, DropConstraint { name: Ident } should probably also contain fields for cascade/restrict, and possibly if_exists )
Activity
tvallotton commentedon Sep 2, 2021
Note that when constructing the value by hand and transforming it to a string, we get the expected result:
alamb commentedon Feb 9, 2022
fixed in #396