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 @@
1490
1490
} elseif ( $value === null ) {
1491
1491
if ( $mode == LIST_AND || $mode == LIST_OR ) {
1492
1492
$list .= "$field IS ";
1493
+ if ( $not ) {
1494
+ $list .= "NOT ";
1495
+ }
1493
1496
} elseif ( $mode == LIST_SET ) {
1494
1497
$list .= "$field = ";
1495
1498
}
Status & tagging log
21:58, 21 June 2011
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r90269
[
removed:
new
added:
ok]