Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plpgsql: handle multiple expressions when one expression is expected
Previously, the PLpgSQL parser could panic when the user supplied more than one expression in a location where only one was expected, for example, in a return statement. This was because the PLpgSQL parser delegated to the SQL parser's `ParseExpr` function, which expects exactly one input expression. This commit returns a syntax error instead of the panic by switching to use `ParseExprs`, which can handle multiple input expressions. Informs cockroachdb#109342 Release note: None
- Loading branch information