r90269 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90268‎ | r90269 | r90270 >
Date:14:54, 17 June 2011
Author:platonides
Status:ok
Tags:
Comment:
Empower our Database object so that it is possible to perform NOT NULL queries (SELECT abc WHERE xyz IS NOT NULL)
Modified paths:
  • /trunk/phase3/includes/db/Database.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/Database.php
@@ -1489,6 +1489,9 @@
14901490 } elseif ( $value === null ) {
14911491 if ( $mode == LIST_AND || $mode == LIST_OR ) {
14921492 $list .= "$field IS ";
 1493+ if ( $not ) {
 1494+ $list .= "NOT ";
 1495+ }
14931496 } elseif ( $mode == LIST_SET ) {
14941497 $list .= "$field = ";
14951498 }

Status & tagging log