[TYPO3-core] RFC: Fix for bug #1649

Karsten Dambekalns karsten at typo3.org
Wed Dec 21 18:53:35 CET 2005


This is a CVS patch request.

Type: Bugfix for
 http://bugs.typo3.org/view.php?id=1649

Branches: HEAD, 3.8(?)

Description:
When having a self-referencing mm relation the SQL created by 
exec_SELECT_mm_query() in t3lib_db will be wrong, as it will have a 
non-unique table name twice in the list of from tables.

Solution:
Check for local and foreign table being identical and leave out the foreign 
table from the table list if needed.

Rather trivial, but since I already wrote this would be discussed here in a 
bugtracker note, I thought I should do it. :)

Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-1649.patch
Type: text/x-diff
Size: 803 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051221/b978cca5/attachment.bin 


More information about the TYPO3-team-core mailing list