From d60804eac49f91b78631ccf468bd44faa2b37a07 Mon Sep 17 00:00:00 2001 From: Willem-Jan Zijderveld Date: Tue, 21 Jan 2014 20:08:51 +0100 Subject: [PATCH] Fix for #127, 'escape' the selectorName --- tests/06_Query/QuerySql2OperationsTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/06_Query/QuerySql2OperationsTest.php b/tests/06_Query/QuerySql2OperationsTest.php index 4d082001..37fcc035 100644 --- a/tests/06_Query/QuerySql2OperationsTest.php +++ b/tests/06_Query/QuerySql2OperationsTest.php @@ -386,8 +386,8 @@ public function testLengthOperandOnEmptyProperty() SELECT data.* FROM [nt:unstructured] AS data WHERE - data.empty-value IS NOT NULL - AND LENGTH(data.empty-value) < 1 + data.[empty-value] IS NOT NULL + AND LENGTH(data.[empty-value]) < 1 AND ISDESCENDANTNODE([/tests_general_base]) ', QueryInterface::JCR_SQL2 @@ -406,8 +406,8 @@ public function testLengthOperandOnEmptyProperty() SELECT data.* FROM [nt:unstructured] AS data WHERE - data.empty-value IS NOT NULL - AND LENGTH(data.empty-value) = 0 + data.[empty-value] IS NOT NULL + AND LENGTH(data.[empty-value]) = 0 AND ISDESCENDANTNODE([/tests_general_base]) ', QueryInterface::JCR_SQL2 @@ -426,8 +426,8 @@ public function testLengthOperandOnEmptyProperty() SELECT data.* FROM [nt:unstructured] AS data WHERE - data.empty-value IS NOT NULL - AND LENGTH(data.empty-value) > -1 + data.[empty-value] IS NOT NULL + AND LENGTH(data.[empty-value]) > -1 AND ISDESCENDANTNODE([/tests_general_base]) ', QueryInterface::JCR_SQL2 @@ -448,7 +448,7 @@ public function testLengthOperandOnBinaryProperty() $query = $this->sharedFixture['qm']->createQuery(' SELECT data.* FROM [nt:unstructured] AS data - WHERE LENGTH(data.jcr:data) = 121 + WHERE LENGTH(data.[jcr:data]) = 121 AND ISDESCENDANTNODE([/tests_general_base]) ', QueryInterface::JCR_SQL2