Last modified: 2013-06-01 21:00:36 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 T50853, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48853 - SQL: NULL in an IN-list should be written as OR
SQL: NULL in an IN-list should be written as OR
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-27 11:05 UTC by Liangent
Modified: 2013-06-01 21:00 UTC (History)
1 user (show)

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


Attachments

Description Liangent 2013-05-27 11:05:51 UTC
> print_r($dbr->makeList(array('a'=>array(null,2)),LIST_OR));
a IN (NULL,'2') 

Expected: a IS NULL OR a = '2'
Comment 1 db [inactive,noenotif] 2013-06-01 20:56:02 UTC
Seen manuel ORs in core around rd_interwiki but there maybe exist other wheres, where this maybe can make the code easier.
Comment 2 Liangent 2013-06-01 21:00:36 UTC
(In reply to comment #1)
> Seen manuel ORs in core around rd_interwiki but there maybe exist other
> wheres,
> where this maybe can make the code easier.

Correct! I reported this bug when working with rd_interwiki.

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


Navigation
Links