Details
Description
If identifier quoting is enabled doctrine does not perform quoting in some subqueries.
$this->_conn->quoteIdentifier has to be added twice as below in query.php line 1426:
$subquery = 'SELECT doctrine_subquery_alias.' . $this->_conn->quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' FROM (' . $subquery . ') doctrine_subquery_alias' . ' GROUP BY doctrine_subquery_alias.' . $this->_conn->quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' ORDER BY MIN(ROWNUM)';
Activity
Jonathan H. Wage
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
If identifier quoting is enabled doctrine does not perform quoting in some subqueries. $this->_conn->quoteIdentifier has to be added twice as below in query.php line 1426: $subquery = 'SELECT doctrine_subquery_alias.' . $this->_conn- >quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' FROM (' . $subquery . ') doctrine_subquery_alias' . ' GROUP BY doctrine_subquery_alias.' . $this->_conn- >quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' ORDER BY MIN(ROWNUM)'; |
If identifier quoting is enabled doctrine does not perform quoting in some subqueries. $this->_conn->quoteIdentifier has to be added twice as below in query.php line 1426: {code} $subquery = 'SELECT doctrine_subquery_alias.' . $this->_conn->quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' FROM (' . $subquery . ') doctrine_subquery_alias' . ' GROUP BY doctrine_subquery_alias.' . $this->_conn->quoteIdentifier($table->getColumnName($table->getIdentifier())) . ' ORDER BY MIN(ROWNUM)'; {code} |
| Assignee | Guilherme Blanco [ guilhermeblanco ] | Jonathan H. Wage [ jwage ] |
Jonathan H. Wage
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.2.0-RC1 [ 10041 ] | |
| Resolution | Fixed [ 1 ] |
Thomas Wahle
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Jonathan H. Wage
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-256, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
In 1.2 Beta 3 the quoting is not fixed
Identifier Quoting need to be done in Doctrine_Query line 1462 and line 1464 to $table->getColumnName($table->getIdentifier
$subquery = 'SELECT doctrine_subquery_alias.' . $table->getColumnName($table->getIdentifier())
. ' FROM (' . $subquery . ') doctrine_subquery_alias'
. ' GROUP BY doctrine_subquery_alias.' . $table->getColumnName($table->getIdentifier())
. ' ORDER BY MIN(ROWNUM)';
The above code creates incorrect statements if identifier quoting is enabled