[drupal-devel] forum table WTF

Gabor Hojtsy gabor at hojtsy.hu
Mon Jun 6 15:29:00 UTC 2005


>>>IIRC, the "shadow copy" feature was simplified to not have a "primary
>>>tid" anymore about a year ago.
>>
>>Well, it does not seem so. The query I posted from forum_get_topics() is
>>from latest Drupal CVS (forum module 1.256), and it only selects topics
>>(nodes) registered in the forum table. And since the forum table has a
>>nid primary key.. TADA, we found the "primary tid".
>>
>>Here is the important part:
>>
>>SELECT n.nid, f.tid ... FROM {node} n, ... {forum} f WHERE n.nid = f.nid
> 
> I agree, but the shadowed tid isn't rendered special in any way.

Sure, rendering is a different question, this is why this stuff had an
easy time hiding.

Goba



More information about the drupal-devel mailing list