Reverted some BNF changes
This commit is contained in:
parent
602c6d973e
commit
d1cd35d395
@ -168,19 +168,17 @@ ConditionalExpression ::= ConditionalTerm {"OR" ConditionalTerm}*
|
|||||||
ConditionalTerm ::= ConditionalFactor {"AND" ConditionalFactor}*
|
ConditionalTerm ::= ConditionalFactor {"AND" ConditionalFactor}*
|
||||||
ConditionalFactor ::= ["NOT"] ConditionalPrimary
|
ConditionalFactor ::= ["NOT"] ConditionalPrimary
|
||||||
ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
|
ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
|
||||||
SimpleConditionalExpression ::= ExistsExpression |
|
SimpleConditionalExpression ::= ComparisonExpression | BetweenExpression | LikeExpression |
|
||||||
(SimpleStateFieldPathExpression (ComparisonExpression | BetweenExpression | LikeExpression |
|
InExpression | NullComparisonExpression | ExistsExpression |
|
||||||
InExpression | NullComparisonExpression)) |
|
EmptyCollectionComparisonExpression | CollectionMemberExpression
|
||||||
(CollectionValuedPathExpression EmptyCollectionComparisonExpression) |
|
|
||||||
(EntityExpression CollectionMemberExpression)
|
|
||||||
/* EmptyCollectionComparisonExpression and CollectionMemberExpression are for the future */
|
/* EmptyCollectionComparisonExpression and CollectionMemberExpression are for the future */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COLLECTION EXPRESSIONS (FOR THE FUTURE)
|
* COLLECTION EXPRESSIONS (FOR THE FUTURE)
|
||||||
*/
|
*/
|
||||||
EmptyCollectionComparisonExpression ::= "IS" ["NOT"] "EMPTY"
|
EmptyCollectionComparisonExpression ::= CollectionValuedPathExpression "IS" ["NOT"] "EMPTY"
|
||||||
CollectionMemberExpression ::= ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression
|
CollectionMemberExpression ::= EntityExpression ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -109,14 +109,14 @@ class Orm_Query_SelectSqlGenerationTest extends Doctrine_OrmTestCase
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* public function testWhereClauseInSelect()
|
public function testWhereClauseInSelect()
|
||||||
{
|
{
|
||||||
$this->assertSqlGeneration(
|
$this->assertSqlGeneration(
|
||||||
'select u from ForumUser u where u.id = ?',
|
'select u from ForumUser u where u.id = ?',
|
||||||
'SELECT fu.id AS fu__id, fu.username AS fu__username FROM ForumUser fu WHERE fu.id = ?'
|
'SELECT fu.id AS fu__id, fu.username AS fu__username FROM ForumUser fu WHERE fu.id = ?'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
/* public function testAggregateFunctionWithDistinctInSelect()
|
/* public function testAggregateFunctionWithDistinctInSelect()
|
||||||
{
|
{
|
||||||
$this->assertSqlGeneration(
|
$this->assertSqlGeneration(
|
||||||
|
Loading…
Reference in New Issue
Block a user