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 {
5558
5558
transaction,
5559
5559
modifier,
5560
5560
statements,
5561
- exception : exception_handling ,
5561
+ exception,
5562
5562
has_end_keyword,
5563
5563
} => {
5564
5564
if * syntax_begin {
@@ -5580,7 +5580,7 @@ impl fmt::Display for Statement {
5580
5580
write ! ( f, " " ) ?;
5581
5581
format_statement_list ( f, statements) ?;
5582
5582
}
5583
- if let Some ( exception_when) = exception_handling {
5583
+ if let Some ( exception_when) = exception {
5584
5584
write ! ( f, " EXCEPTION" ) ?;
5585
5585
for when in exception_when {
5586
5586
write ! ( f, " {when}" ) ?;
Original file line number Diff line number Diff line change @@ -15136,7 +15136,7 @@ impl<'a> Parser<'a> {
15136
15136
pub fn parse_begin_exception_end(&mut self) -> Result<Statement, ParserError> {
15137
15137
let statements = self.parse_statement_list(&[Keyword::EXCEPTION, Keyword::END])?;
15138
15138
15139
- let exception_handling = if self.parse_keyword(Keyword::EXCEPTION) {
15139
+ let exception = if self.parse_keyword(Keyword::EXCEPTION) {
15140
15140
let mut when = Vec::new();
15141
15141
15142
15142
// We can have multiple `WHEN` arms so we consume all cases until `END`
@@ -15170,7 +15170,7 @@ impl<'a> Parser<'a> {
15170
15170
Ok(Statement::StartTransaction {
15171
15171
begin: true,
15172
15172
statements,
15173
- exception: exception_handling ,
15173
+ exception,
15174
15174
has_end_keyword: true,
15175
15175
transaction: None,
15176
15176
modifier: None,
You can’t perform that action at this time.
0 commit comments