Last modified: 2006-11-09 14:24:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9847, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7847 - Use of "addfirstcategorydate" triggers SQL error
Use of "addfirstcategorydate" triggers SQL error
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList2 (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-08 22:06 UTC by Mike Axelrod
Modified: 2006-11-09 14:24 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mike Axelrod 2006-11-08 22:06:14 UTC
Mediawiki 1.8.2 wirth DPL2 version 0.7.7  - recreated on a windows system and a
Unix system.

The following code generates a MySQL error.

<DPL>
category=news
addfirstcategorydate=true
</DPL>

The error generated is:

---

Database error
A database query syntax error has occurred. This may indicate a bug in the
software. The last attempted database query was:

    (SQL query hidden)

from within function "". MySQL returned error "1109: Unknown table 'c1' in field
list (localhost)".

----

This have to have something to do with the code around line 708 in
DynamicPageList2.php

   $sSqlCl_timestamp = ", DATE_FORMAT(c1.cl_timestamp, '%Y%m%d%H%i%s') AS
cl_timestamp";
Comment 1 Cyril Dangerville 2006-11-09 14:22:11 UTC
Indeed, 'c1' should have been replaced by 'cl0'. Mea culpa. 
This is now fixed on subversion.
Comment 2 Rob Church 2006-11-09 14:24:37 UTC
That's r17510.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links