enum OptionalWords
Public API: explicitly declared with @visibility public.

Whether optional words that do not change the meaning are written, such as the empty parentheses after CURDATE or the ROW before a row constructor.

Both forms mean the same. The form is kept because MySQL names an unaliased select list expression after its text, so SELECT CURDATE and SELECT CURDATE() return differently named columns. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html, https://dev.mysql.com/doc/refman/8.4/en/date-and-time-functions.html.

Reading whether the parentheses are writtendoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT CURRENT_DATE');
    $query->statement->items[0]->expression->parentheses // => \SqlSemantics\Platform\MySql\Statement\Expression\OptionalWords::Omitted

Cases§

case Written
case Omitted

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 7

Relations§

Constant reads 57
Type declarations 10