nom-sql icon indicating copy to clipboard operation
nom-sql copied to clipboard

Support selecting literals only

Open tomharmon opened this issue 5 years ago • 0 comments

In standard SQL you may select literals without a table, eg SELECT 1 + 1;. This is not supported by nom-sql but in a perfect world it would be.

comment from @spazm (on the bump nom to v5 PR): nested_selection could attempt to parse with something more specific than field_definition_expr like field_definition_literals(hypothetical) which would parse without the FROM (or FROM as optional).

tomharmon avatar Feb 03 '20 15:02 tomharmon