phpcr/phpcr — pull request #20 by nacmartin (2011-11-10 22:10:21+00:00)
Title: Adding quotes to literals in expressions of fullsearch at qom2sql converter

FulltextSearchInterface accepts strings as second parameter (the search expression):

http://phpcr.github.com/doc/html/phpcr/query/qom/queryobjectmodelfactoryinterface.html#fullTextSearch()

Thus, returning the literal is valid, but it should be enclosed in single quotes according to specification:

FullTextSearchExpression ::= BindVariable | ''' FullTextSearchLiteral '''