[drupal-devel] forum table WTF

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Mon Jun 6 15:08:48 UTC 2005



On Mon, 6 Jun 2005, Gabor Hojtsy wrote:

> > 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.

Cheers,
	Gerhard




More information about the drupal-devel mailing list