```
milovidov-desktop :) SELECT -1::INT

Syntax error: failed at position 10 ('::')
```
if (!elem_p.parse(pos, expr_elem, expected))
        return false;
    int direction = 1;
    if (descending.ignore(pos) || desc.ignore(pos))
        direction = -1;
    else
        ascending.ignore(pos) || asc.ignore(pos);
    int nulls_direction = direction;
    bool nulls_direction_was_explicitly_specified = false;
    if (nulls.ignore(pos))
    {
        nulls_direction_was_explicitly_specified = true;
        if (first.ignore(pos))
            nulls_direction = -direction;
        else if (last.ignore(pos))
            ;
        else
            return false;
    }
    ASTPtr locale_node;
    if (collate.ignore(pos))
    {
        if (!collate_locale_parser.parse(pos, locale_node, expected))
            return false;
    }
    
    bool has_with_fill = false;
    ASTPtr fill_from;
    ASTPtr fill_to;
    ASTPtr fill_step;