supabase-community / postgres_lsp

A Language Server for Postgres
https://supabase.com
MIT License
3.32k stars 62 forks source link

feat: add support for create range #78

Closed cvng closed 11 months ago

cvng commented 11 months ago

What kind of change does this PR introduce?

add support for create range

What is the current behavior?

panics

What is the new behavior?

parser returns

View log ```rust CreateRangeStmt { type_name: [ Node { node: Some( String( String { sval: "type1", }, ), ), }, ], params: [ Node { node: Some( DefElem( DefElem { defnamespace: "", defname: "subtype", arg: Some( Node { node: Some( TypeName( TypeName { names: [ Node { node: Some( String( String { sval: "int4", }, ), ), }, ], type_oid: 0, setof: false, pct_type: false, typmods: [], typemod: -1, array_bounds: [], location: 38, }, ), ), }, ), defaction: DefelemUnspec, location: 28, }, ), ), }, ], } ```

Additional context

Add any other context or screenshots.