Skip to content

Commit 2043e70

Browse files
author
Willem-Jan Zijderveld
committed
Added a test for a query with a colon
1 parent f993dd1 commit 2043e70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/06_Query/CharacterTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,17 @@ public function testPropertyWithQuotesAndBackslash()
100100
$this->assertCount(1, $rows);
101101
$this->assertEquals("'a\'\'b\'\'c'", $rows->current()->getValue('quoteandbackslash'));
102102
}
103+
104+
public function testQueryWithColon()
105+
{
106+
/** @var QueryManager $queryManager */
107+
$queryManager = $this->sharedFixture['qm'];
108+
$query = $queryManager->createQuery('
109+
SELECT data.property
110+
FROM [nt:unstructured] AS data
111+
WHERE data.property = "foo:bar"
112+
',
113+
QueryInterface::JCR_SQL2
114+
)->execute();
115+
}
103116
}

0 commit comments

Comments
 (0)