Last modified: 2014-06-23 16:06:56 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 T58238, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56238 - Description of $join_conds in DatabaseBase::select() incomplete
Description of $join_conds in DatabaseBase::select() incomplete
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Documentation (Other open bugs)
1.21.x
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-28 12:48 UTC by RV1971
Modified: 2014-06-23 16:06 UTC (History)
1 user (show)

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


Attachments
Patch to part of the doxygen comment for DatabaseBase::select() (518 bytes, text/plain)
2013-10-28 12:48 UTC, RV1971
Details

Description RV1971 2013-10-28 12:48:35 UTC
Created attachment 13600 [details]
Patch to part of the doxygen comment for DatabaseBase::select()

The doxygen comment in Database.php states: "The value is an array with two elements, numbered 0 and 1. The first gives the type of join, the second is an SQL fragment giving the join condition for that table."

Actually the function accepts more than one condition, which is a useful feature and should be documented. See attached patch.
Comment 1 Bartosz Dziewoński 2013-10-28 12:51:23 UTC
Thanks for the patch. Can you upload it to gerrit, our code review system?

See [[mw:Developer access]] for help on how to use it,
or try the patch uploader at http://tools.wmflabs.org/gerrit-patch-uploader .
Comment 2 Gerrit Notification Bot 2013-10-28 13:30:04 UTC
Change 92301 had a related patch set uploaded by Bartosz Dziewoński:
Update documentation for $join_conds in DatabaseBase::select()

https://gerrit.wikimedia.org/r/92301
Comment 3 RV1971 2013-10-29 14:27:14 UTC
I'm afraid that was mistake, I had overlooked a level of parentheses. The value is indeed an array with two elements, where the second can be an array. So the documentation is correct in the present state.
Comment 4 Gerrit Notification Bot 2013-10-29 19:30:12 UTC
Change 92301 abandoned by Bartosz Dziewoński:
Update documentation for $join_conds in DatabaseBase::select()

Reason:
Per bug. Whoops.

https://gerrit.wikimedia.org/r/92301

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


Navigation
Links