Skip to content

Commit

Permalink
another simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Jan 15, 2025
1 parent e392897 commit 8e9e44e
Showing 1 changed file with 4 additions and 29 deletions.
33 changes: 4 additions & 29 deletions postgres/parser/parser/sql.y
Original file line number Diff line number Diff line change
Expand Up @@ -6468,42 +6468,17 @@ vacuum_option:
}
}
// Boolean constants for vacuum options. we can't use `boolean_value` because of conflicts with names
// An empty value here is considered true
// Boolean constants for vacuum options. An empty value here is considered true
boolean_value_for_vacuum_opt:
/* EMPTY */
{
$$.val = true
}
| TRUE
{
$$.val = true
}
| FALSE
{
$$.val = false
}
| 't'
{
$$.val = true
}
| 'f'
{
$$.val = false
}
| 'y'
{
$$.val = true
}
| 'n'
| boolean_value
{
$$.val = false
$$.val = $1
}
| ICONST
{
$$.val = $1.int64() != 0
}

auto_on_off:
AUTO
{
Expand Down

0 comments on commit 8e9e44e

Please sign in to comment.