[doc/book] fix rql syntax examples
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 23 Jun 2015 15:17:31 +0200
changeset 10449 279b3662e8f1
parent 10409 843e4b3ccfbc
child 10450 c5c9e5b6fde0
[doc/book] fix rql syntax examples "Any", not "ANY". "EXISTS" is a function.
doc/book/en/annexes/rql/language.rst
--- a/doc/book/en/annexes/rql/language.rst	Mon Jun 22 12:51:28 2015 +0200
+++ b/doc/book/en/annexes/rql/language.rst	Tue Jun 23 15:17:31 2015 +0200
@@ -370,7 +370,7 @@
 
 .. sourcecode:: sql
 
-  DISTINCT ANY P WHERE V version_of P
+  DISTINCT Any P WHERE V version_of P
 
 This will work, but is not efficient, as it will use the ``SELECT
 DISTINCT`` SQL predicate, which needs to retrieve all projects, then
@@ -379,7 +379,7 @@
 
 .. sourcecode:: sql
 
-  ANY P WHERE EXISTS V version_of P
+  Any P WHERE EXISTS(V version_of P)
 
 
 You can also use the question mark (`?`) to mark optional relations. This allows