Skip to content

Commit 0265296

Browse files
committed
Forbid repeated variables in VALUES
Close #293
1 parent 78a901a commit 0265296

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,7 @@ <h4>VALUES syntax</h4>
26842684
<pre class="data nohighlight">
26852685
VALUES (?z) { ("abc") ("def") }
26862686
</pre>
2687+
<p>Note that duplicated variables are not allowed in VALUES clauses.</p>
26872688
</section>
26882689
<section id="inline-data-examples">
26892690
<h4>VALUES Examples</h4>
@@ -11125,7 +11126,8 @@ <h3>Grammar</h3>
1112511126
nor in <code><a href="#rDeleteData">DELETE DATA</a></code>.</li>
1112611127
<li>Rules for limiting the use of blank node identifiers are given in <a href="#grammarBNodes">section 19.6</a>.</li>
1112711128
<li>The number of variables in the variable list of <code>VALUES</code> block
11128-
must be the same as the number of each list of associated values in the <code>DataBlock</code>.</li>
11129+
must be the same as the number of each list of associated values in the <code>DataBlock</code>,
11130+
and variables can not be repeated in the variable list.</li>
1112911131
<li>Variables introduced by <code>AS</code> in a <code>SELECT</code> clause
1113011132
must not already be <a href="#variableScope">in-scope</a>.</li>
1113111133
<li>The variable assigned in a <code>BIND</code> clause must not be already
@@ -12614,6 +12616,7 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
1261412616
<li>Migrate XML Schema references to 1.1</li>
1261512617
<li>Update references to XPath from 2.0 to 3.1</li>
1261612618
<li>Define `EBV` as a functional form.</li>
12619+
<li>Forbid duplicated variables in `VALUES`</li>
1261712620
</ul>
1261812621
</li>
1261912622
<li>

0 commit comments

Comments
 (0)