Skip to content

Commit

Permalink
Semantics of table key-specifier in query-expr
Browse files Browse the repository at this point in the history
Part of #47.
  • Loading branch information
jclark committed Apr 1, 2020
1 parent a623a32 commit 2bcd3e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5006,7 +5006,10 @@ <h3>Query expression</h3>
every emitted value must be of type xml</li>
</ul>
<p>
The applicable contextually expected type determines which basic type is
If the query-expr starts with <code>table</code>, then the query-expr will
construct a table; the key-specifier specifies the key sequence of the
constructed table in the same way as with a table-constructor-expr. Otherwise,
the applicable contextually expected type determines which basic type is
constructed. If there is no contextually expected type, then it is determined
from the static type of the expression in the initial <code>from</code> clause;
it is a compile-time error if this static type is not a subtype of one of the
Expand Down

0 comments on commit 2bcd3e1

Please sign in to comment.