sql-parser-cst icon indicating copy to clipboard operation
sql-parser-cst copied to clipboard

Mistakes in type definitions

Open nene opened this issue 1 year ago • 0 comments

These fields don't actually exists, but are defined in types:

  • The ResetAllParametersClause contains name field.
  • The CreateFunctionStmt contains behaviorKw field.

Also the parsing rule for ResetAllParametersClause seems to be consuming extra whitespace:

reset_all_parameters_clause
  = kw:(RESET __ ALL __) {  // <--- here
    return loc({
      type: "reset_all_parameters_clause",
      resetAllKw: read(kw),
    });
  }

nene avatar Mar 27 '24 07:03 nene