Skip to content

Commit 6c77e41

Browse files
committed
Adds test to prevent repeated variables in VALUES
Test for w3c/sparql-query#294
1 parent 7c5f78e commit 6c77e41

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT * WHERE { VALUES (?a ?a) { (1 1) } }

sparql/sparql12/expression/manifest.ttl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
mf:entries
1111
(
1212
:not-not
13+
:duplicated_values_var
1314
) .
1415

1516

@@ -21,3 +22,7 @@
2122
[ qt:query <not-not.rq> ] ;
2223
mf:result <not-not.srx>
2324
.
25+
26+
:duplicated_values_var rdf:type mf:NegativeSyntaxTest ;
27+
mf:name "Duplicated variable in a VALUES clause" ;
28+
mf:action <duplicated_values_var.rq> .

0 commit comments

Comments
 (0)