File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5558,7 +5558,7 @@ impl fmt::Display for Statement {
55585558 transaction,
55595559 modifier,
55605560 statements,
5561- exception : exception_handling ,
5561+ exception,
55625562 has_end_keyword,
55635563 } => {
55645564 if * syntax_begin {
@@ -5580,7 +5580,7 @@ impl fmt::Display for Statement {
55805580 write ! ( f, " " ) ?;
55815581 format_statement_list ( f, statements) ?;
55825582 }
5583- if let Some ( exception_when) = exception_handling {
5583+ if let Some ( exception_when) = exception {
55845584 write ! ( f, " EXCEPTION" ) ?;
55855585 for when in exception_when {
55865586 write ! ( f, " {when}" ) ?;
Original file line number Diff line number Diff line change @@ -15136,7 +15136,7 @@ impl<'a> Parser<'a> {
1513615136 pub fn parse_begin_exception_end(&mut self) -> Result<Statement, ParserError> {
1513715137 let statements = self.parse_statement_list(&[Keyword::EXCEPTION, Keyword::END])?;
1513815138
15139- let exception_handling = if self.parse_keyword(Keyword::EXCEPTION) {
15139+ let exception = if self.parse_keyword(Keyword::EXCEPTION) {
1514015140 let mut when = Vec::new();
1514115141
1514215142 // We can have multiple `WHEN` arms so we consume all cases until `END`
@@ -15170,7 +15170,7 @@ impl<'a> Parser<'a> {
1517015170 Ok(Statement::StartTransaction {
1517115171 begin: true,
1517215172 statements,
15173- exception: exception_handling ,
15173+ exception,
1517415174 has_end_keyword: true,
1517515175 transaction: None,
1517615176 modifier: None,
You can’t perform that action at this time.
0 commit comments