Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
d1cd35d3
Commit
d1cd35d3
authored
Jan 19, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted some BNF changes
parent
602c6d97
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
query-language.txt
query-language.txt
+5
-7
SelectSqlGenerationTest.php
tests/Orm/Query/SelectSqlGenerationTest.php
+2
-2
No files found.
query-language.txt
View file @
d1cd35d3
...
...
@@ -168,19 +168,17 @@ ConditionalExpression ::= ConditionalTerm {"OR" ConditionalTerm}*
ConditionalTerm ::= ConditionalFactor {"AND" ConditionalFactor}*
ConditionalFactor ::= ["NOT"] ConditionalPrimary
ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
SimpleConditionalExpression ::= ExistsExpression |
(SimpleStateFieldPathExpression (ComparisonExpression | BetweenExpression | LikeExpression |
InExpression | NullComparisonExpression)) |
(CollectionValuedPathExpression EmptyCollectionComparisonExpression) |
(EntityExpression CollectionMemberExpression)
SimpleConditionalExpression ::= ComparisonExpression | BetweenExpression | LikeExpression |
InExpression | NullComparisonExpression | ExistsExpression |
EmptyCollectionComparisonExpression | CollectionMemberExpression
/* EmptyCollectionComparisonExpression and CollectionMemberExpression are for the future */
/*
* COLLECTION EXPRESSIONS (FOR THE FUTURE)
*/
EmptyCollectionComparisonExpression ::= "IS" ["NOT"] "EMPTY"
CollectionMemberExpression ::= ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression
EmptyCollectionComparisonExpression ::=
CollectionValuedPathExpression
"IS" ["NOT"] "EMPTY"
CollectionMemberExpression ::=
EntityExpression
["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression
/*
...
...
tests/Orm/Query/SelectSqlGenerationTest.php
View file @
d1cd35d3
...
...
@@ -109,14 +109,14 @@ class Orm_Query_SelectSqlGenerationTest extends Doctrine_OrmTestCase
);
}
/*
public function testWhereClauseInSelect()
public
function
testWhereClauseInSelect
()
{
$this
->
assertSqlGeneration
(
'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 = ?'
);
}
*/
/* public function testAggregateFunctionWithDistinctInSelect()
{
$this->assertSqlGeneration(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment