1
0
mirror of synced 2025-01-29 19:41:45 +03:00
This commit is contained in:
zYne 2007-07-30 15:54:50 +00:00
parent 8a0898d3ed
commit 57a6200b5e

View File

@ -174,7 +174,18 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($ret, $sql);
}
public function testParseClauseSupportsMixingOfOperatorsAndDeeplyNestedParenthesis2()
{
$q = new Doctrine_Search_Query('SearchTestIndex');
$ret = $q->parseClause('rdbms (((doctrine OR orm) AND dbal) OR database)');
$sql = '(search_test_id IN (SELECT search_test_id FROM search_test_index WHERE keyword = ?)) AND '
. '((search_test_id IN (SELECT search_test_id FROM search_test_index WHERE keyword = ? OR keyword = ?)) '
. 'AND (search_test_id IN (SELECT search_test_id FROM search_test_index WHERE keyword = ?))'
. ' OR keyword = ?)';
$this->assertEqual($ret, $sql);
}
/**
public function testSearchSupportsAndOperator()
{