Skip to content

Commit 8e9e44e

Browse files
committed
another simplification
1 parent e392897 commit 8e9e44e

File tree

1 file changed

+4
-29
lines changed
  • postgres/parser/parser

1 file changed

+4
-29
lines changed

postgres/parser/parser/sql.y

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6468,42 +6468,17 @@ vacuum_option:
64686468
}
64696469
}
64706470
6471-
// Boolean constants for vacuum options. we can't use `boolean_value` because of conflicts with names
6472-
// An empty value here is considered true
6471+
// Boolean constants for vacuum options. An empty value here is considered true
64736472
boolean_value_for_vacuum_opt:
64746473
/* EMPTY */
64756474
{
64766475
$$.val = true
64776476
}
6478-
| TRUE
6479-
{
6480-
$$.val = true
6481-
}
6482-
| FALSE
6483-
{
6484-
$$.val = false
6485-
}
6486-
| 't'
6487-
{
6488-
$$.val = true
6489-
}
6490-
| 'f'
6491-
{
6492-
$$.val = false
6493-
}
6494-
| 'y'
6495-
{
6496-
$$.val = true
6497-
}
6498-
| 'n'
6477+
| boolean_value
64996478
{
6500-
$$.val = false
6479+
$$.val = $1
65016480
}
6502-
| ICONST
6503-
{
6504-
$$.val = $1.int64() != 0
6505-
}
6506-
6481+
65076482
auto_on_off:
65086483
AUTO
65096484
{

0 commit comments

Comments
 (0)