jackalope/jackalope — pull request #112 by chregu (2012-04-14 06:11:52+00:00)
Title: Return JCR_SQL2 instead of JCR_JQOM in getLanguage of the QueryObjectModel

From the specs:

String Query.getLanguage()

returns the language in which the query is specified.

If the Query was created with an explicitly supplied language string parameter using QueryManager.createQuery then this method returns that string.

If the Query is actually a QueryObjectModel created with QueryObjectModelFactory.createQuery then Query.getLanguage will return the string constant Query.JCR_SQL2.

See also https://github.com/phpcr/phpcr-api-tests/pull/63