#011786: Database: quoteIdentifier() incorrectly quotes inambiguous idenitifers

Description:

$q->getIdentifier( 'table_1.id' );

incorrectly returns 'table_1.table_2.id' if you set 'id' an alias for 'table_2.id'. That also applies to the expression object (btw. c&p code detected).

Find a patch to solve this attached.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
database.patch (2.2 kb)
[Download] [Permanent Link]
Patch

- Comments

Fixed in rev. 7072, the submitted patch was not used.

#255316 by Derick Rethans on January 4th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Database
Affects Unknown
Fix Version 2007.2.1 - eZ components 2007.2.1
Reporter Tobias Schlitt
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created October 30th, 2007
Updated January 4th, 2008
Resolved January 4th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels