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
29e51412
Commit
29e51412
authored
Mar 16, 2010
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Reverted r7392 which generates broken SQL query.
parent
bb94f6ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Parser.php
lib/Doctrine/ORM/Query/Parser.php
+2
-2
SqlWalker.php
lib/Doctrine/ORM/Query/SqlWalker.php
+1
-3
No files found.
lib/Doctrine/ORM/Query/Parser.php
View file @
29e51412
...
...
@@ -2129,7 +2129,7 @@ class Parser
/**
* ArithmeticPrimary ::= SingleValuedPathExpression | Literal | "(" SimpleArithmeticExpression ")"
* | FunctionsReturningNumerics | AggregateExpression | FunctionsReturningStrings
* | FunctionsReturningDatetime |
Result
Variable
* | FunctionsReturningDatetime |
Identification
Variable
*/
public
function
ArithmeticPrimary
()
{
...
...
@@ -2154,7 +2154,7 @@ class Parser
return
$this
->
SingleValuedPathExpression
();
}
return
$this
->
Result
Variable
();
return
$this
->
Identification
Variable
();
case
Lexer
::
T_INPUT_PARAMETER
:
return
$this
->
InputParameter
();
...
...
lib/Doctrine/ORM/Query/SqlWalker.php
View file @
29e51412
...
...
@@ -1640,9 +1640,7 @@ class SqlWalker implements TreeWalker
}
else
if
(
$primary
instanceof
AST\Node
)
{
$sql
.=
$primary
->
dispatch
(
$this
);
}
else
if
(
is_string
(
$primary
))
{
$columnName
=
$this
->
_queryComponents
[
$primary
][
'token'
][
'value'
];
$sql
.=
$this
->
_scalarResultAliasMap
[
$columnName
];
// We need to deal with IdentificationVariable here
}
return
$sql
;
...
...
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